lorien / captcha_solver

CAPTCHAFORUM

Administrator
1654884158630.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