Client library for solve captchas with Anticaptcha.com support.
Project description
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.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file python-anticaptcha-0.0.7.tar.gz
.
File metadata
- Download URL: python-anticaptcha-0.0.7.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 847f14a5129d187e2605d370648f9f8c9f5182cf2ca5cebd98bad7e25ce3ef72 |
|
MD5 | 0e2b767eeb574e8d1da508734fc23ef1 |
|
BLAKE2b-256 | f081ac90cbceaad366482999e98562e94fae1a929ae70b379fae6d844f569ddf |
Provenance
File details
Details for the file python_anticaptcha-0.0.7-py2-none-any.whl
.
File metadata
- Download URL: python_anticaptcha-0.0.7-py2-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49950627e3ab21c6173bebc537b5662cdc83f324bc822a964224af6d87b87ed8 |
|
MD5 | 04c30c35f175b2e033fabdd5862ea418 |
|
BLAKE2b-256 | 53dbfcfbd4bcad1be2eb71408a930730bf83eae2de15326b723b4b62992a1145 |