captcha_solver_fork

#1
2captcha-banner[1].png

Univeral API to captcha solving services.

Installation
pip install captcha-solver


Twocaptcha Backend Example
Service website is https://2captcha.com
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))

Rucaptcha Backend Example
Service website is https://rucaptcha.com
Code:
from captcha_solver import CaptchaSolver

solver = CaptchaSolver('rucaptcha', api_key='RUCAPTCHA_KEY')
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))

Documentation https://github.com/jimtje/captcha_solver