Skip to main content

Client library for solve captchas with Anticaptcha.com support.

Project description

Code issues Python package

Client library for solve captchas with Anticaptcha.com support. The library supports both Python 2.7 and Python 3.

Getting Started

Install as standard for Python packages using:

pip install python-anticaptcha

Usage

Do use this library do you need Anticaptcha.com API key.

Example snippet for Recaptcha:

from python_anticaptcha import AnticaptchaClient, NoCaptchaTaskProxylessTask

api_key = '174faff8fbc769e94a5862391ecfd010'
site_key = '6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-'  # grab from site
url = 'https://www.google.com/recaptcha/api2/demo'

client = AnticaptchaClient(api_key)
task = NoCaptchaTaskProxylessTask(url, site_key)
job = client.createTask(task)
job.join()
print job.get_solution_response()

Example snippet for text captcha:

from python_anticaptcha import AnticaptchaClient, ImageToTextTask

api_key = '174faff8fbc769e94a5862391ecfd010'
captcha_fp = open('examples/captcha_ms.jpeg', 'rb')
client = AnticaptchaClient(api_key)
task = ImageToTextTask(captcha_fp)
job = client.createTask(task)
job.join()
print job.get_captcha_text()

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Adam Dobrawy - Initial work - ad-m

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

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

python-anticaptcha-0.0.7.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

python_anticaptcha-0.0.7-py2-none-any.whl (6.6 kB view details)

Uploaded Python 2

File details

Details for the file python-anticaptcha-0.0.7.tar.gz.

File metadata

File hashes

Hashes for python-anticaptcha-0.0.7.tar.gz
Algorithm Hash digest
SHA256 847f14a5129d187e2605d370648f9f8c9f5182cf2ca5cebd98bad7e25ce3ef72
MD5 0e2b767eeb574e8d1da508734fc23ef1
BLAKE2b-256 f081ac90cbceaad366482999e98562e94fae1a929ae70b379fae6d844f569ddf

See more details on using hashes here.

Provenance

File details

Details for the file python_anticaptcha-0.0.7-py2-none-any.whl.

File metadata

File hashes

Hashes for python_anticaptcha-0.0.7-py2-none-any.whl
Algorithm Hash digest
SHA256 49950627e3ab21c6173bebc537b5662cdc83f324bc822a964224af6d87b87ed8
MD5 04c30c35f175b2e033fabdd5862ea418
BLAKE2b-256 53dbfcfbd4bcad1be2eb71408a930730bf83eae2de15326b723b4b62992a1145

See more details on using hashes here.

Provenance

Supported by

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