Skip to main content

A versatile captcha solver module integrating popular captcha-solving services like 2Captcha, AntiCaptcha, and more.

Project description

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


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

async_captcha_solver-0.1.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

async_captcha_solver-0.1.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file async_captcha_solver-0.1.1.tar.gz.

File metadata

File hashes

Hashes for async_captcha_solver-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e7104405ed0f03890e8dce6a7c1a17ac0f6e74e870e128e2dd0bbc9ae0d51593
MD5 16a53999799e453d5f0155869efe7d48
BLAKE2b-256 b5fb06ee346a9fff8e2ccf4dc50be586c0d7ab0e7f89b1b929ae41ccfdcbd472

See more details on using hashes here.

File details

Details for the file async_captcha_solver-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for async_captcha_solver-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd26e690e163fed6742d170bdc35851b7d5dad16587c224beb27b222a6f8e59a
MD5 8cd1da74702ef31b8f93a4fb524e698b
BLAKE2b-256 96411a3838e6b3b515bfc309d3cdefd01a8bd646fa19578de33d7d621738c1fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page