lorien / captcha_solver

#1
Captcha-Solver-web[1].png

Univeral API to captcha solving services.

Installation
pip install captcha-solver

Twocaptcha Backend Example
Service website is 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
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))
Documentation https://github.com/lorien/captcha_solver