Captcha-Tools

CAPTCHAFORUM

Administrator
Captcha Tools
Python module to help solve captchas with Capmonster, 2Captcha and Anticaptcha API's!

Go(lang)
To see documentation for the Go implementation, click here

Install
pip3 install captchatools

To update
pip3 install -U captchatools

How to use
Code:
import captchatools
solver = captchatools.captcha_harvesters(solving_site="capmonster", api_key="YOUR API KEY", sitekey="SITEKEY", captcha_url="https://www.google.com/recaptcha/api2/demo")
captcha_answer = solver.get_token()

or

Code:
from captchatools import captcha_harvesters, exceptions
solver = captcha_harvesters(solving_site=1, api_key="YOUR API KEY", sitekey="SITEKEY", captcha_url="https://www.google.com/recaptcha/api2/demo")
captcha_answer = solver.get_token()

1633593868206.png


For 2Captcha, don't run more than 60 tasks per API key.

Exceptions
1633593956405.png

Code:
 from captchatools import captcha_harvesters, exceptions as captchaExceptions
try:
    ...
except captchaExceptions.NoBalanceException:
    print("No balance.")

or

Code:
import captchatools
try:
    ...
except captchatools.NoBalanceException:
    print("No balance.")