CAPTCHAFORUM
Administrator
https://2captcha.com/ru/software/python-biblioteka-captcha_solver
Univeral API to captcha solving services.
Installation
Code:
pip install captcha-solver
Twocaptcha Backend Example
Code:
from captcha_solver import CaptchaSolver
solver = CaptchaSolver('twocaptcha', api_key='2captcha.com API HERE')
raw_data = open('captcha.png', 'rb').read()
print(solver.solve_captcha(raw_data))
Browser Backend Example
Code:
from captcha_solver import CaptchaSolver
solver = CaptchaSolver('browser')
raw_data = open('captcha.png', 'rb').read()
print(solver.solve_captcha(raw_data))
Antigate Backend Example
Service website is http://getcaptchasolution.com/ijykrofoxz
Code:
from captcha_solver import CaptchaSolver
solver = CaptchaSolver('antigate', api_key='ANTIGATE_KEY')
raw_data = open('captcha.png', 'rb').read()
print(solver.solve_captcha(raw_data))