Skip to main content

Async Captcha Solver

async-captcha-solver is a Python library designed for solving various types of CAPTCHA challenges using popular third-party CAPTCHA-solving services such as 2Captcha, AntiCaptcha, and CapMonster. It provides an easy-to-use abstraction layer for interacting with these services in a unified and efficient way.


Key Features

  • Support for popular CAPTCHA-solving services (e.g., 2Captcha, AntiCaptcha, CapMonster).
  • Unified interface for handling CAPTCHA tasks.
  • Asynchronous API for scalable and high-performance applications.
  • Extensible framework allowing custom CAPTCHA-solving providers.
  • Built-in HTTP client abstraction for flexibility.

Installation

Ensure you have Python 3.12 or newer installed on your system. Then, install the package using pip:

uv add async-captcha-solver

or

pip install async-captcha-solver

Usage

Quick Start

import asyncio
import logging

from async_captcha_solver import CaptchaSolver


async def main():
    logging.basicConfig(level=logging.DEBUG)
    solver = CaptchaSolver(service='capmonster', api_key='API_KEY')

    # optional
    solver.client.retry_count = 20
    solver.client.delay = 7

    status, result = await solver.client.recaptcha_v2(website_url='https://app.getgrass.io/register/',
                                                      website_key='6LeeT-0pAAAAAFJ5JnCpNcbYCBcAerNHlkK4nm6y')
    print("result", result)

    if status:
        token = result.get('solution').get('gRecaptchaResponse')
        print("token", token)


if __name__ == '__main__':
    asyncio.run(main())

Acknowledgments


Metadata

Release files for async-captcha-solver 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for async-captcha-solver 0.1.1
File Size Uploaded
async_captcha_solver-0.1.1.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for async-captcha-solver 0.1.1
File Interpreter ABI Platform
async_captcha_solver-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.4 kB

Release files / async_captcha_solver-0.1.1.tar.gz

Download URL async_captcha_solver-0.1.1.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e7104405ed0f03890e8dce6a7c1a17ac0f6e74e870e128e2dd0bbc9ae0d51593
BLAKE2b-256 checksum
How to use checksums
b5fb06ee346a9fff8e2ccf4dc50be586c0d7ab0e7f89b1b929ae41ccfdcbd472
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.13

Release files / async_captcha_solver-0.1.1-py3-none-any.whl

Download URL async_captcha_solver-0.1.1-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd26e690e163fed6742d170bdc35851b7d5dad16587c224beb27b222a6f8e59a
BLAKE2b-256 checksum
How to use checksums
96411a3838e6b3b515bfc309d3cdefd01a8bd646fa19578de33d7d621738c1fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.13

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page