Skip to main content

Client library for solve captchas with Anticaptcha.com support.

Project description

Client library for solve captchas with Anticaptcha.com support.

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.6.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

python_anticaptcha-0.0.6-py2-none-any.whl (6.3 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for python-anticaptcha-0.0.6.tar.gz
Algorithm Hash digest
SHA256 83ba73a69384f6862dc6b57d663326ad4fb76ea76d5f528c208fdbd186839a75
MD5 4e1950e49fa8b5380eb54e70920ac21d
BLAKE2b-256 e4d666bd4407df8a37888c039672a4fa1becbee03b0d88bd93a6627407089481

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for python_anticaptcha-0.0.6-py2-none-any.whl
Algorithm Hash digest
SHA256 29665c96432cf561920e5739f038ebd26dc8a4297e2725879741f438b9b3aa5b
MD5 40081c2fb4237d5d5d0741099e7b7bff
BLAKE2b-256 00babd3de6d0b269a4c96cbf1a92bbf3e9dc05479770a4a55225d24fc2289d9c

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