Skip to content

unicapsvscaptcha_solver

Apache Software 2 1 124
321 (month) Jul 27 2020 1.2.0(4 months ago)
205 2 7 MIT
0.1.5(3 years ago) Feb 17 2015 11.1 thousand (month)

Unicaps is a unified Python API for CAPTCHA solving services.

  • A unified Python interface that is independent of the service used
  • Uses native service protocol/endpoints (eg, no needs in patching hosts file)
  • Has both synchronous and asynchronous client
  • Supports 10 types of CAPTCHAs
  • Supports 7 CAPTCHA solving services
  • Written Pythonic way and is intended for humans

captcha_solver is an Univeral API to work with captcha solving services.

It currently supports: - 2captcha.com (twocaptcha) - getcaptchasolution.com (antigate) - rucaptcha.com

as well as a local browser emulation approach.

Example Use


from unicaps import CaptchaSolver, CaptchaSolvingService
solver = CaptchaSolver(CaptchaSolvingService.TWOCAPTCHA, api_key="<PLACE_YOUR_API_KEY_HERE>")
solver.get_balance()
2.84161
solved = solver.solve_image_captcha(open("captcha.jpg", "rb"), is_phrase=False, is_case_sensitive=True)
solved.solution.text
'w93Bx'
solved.cost
0.00078
solved.report_good()
True
from captcha_solver import CaptchaSolver

# use paid service:
solver = CaptchaSolver('twocaptcha', api_key='2captcha.com API HERE')
solver = CaptchaSolver('rucaptcha', api_key='RUCAPTCHA_KEY')
solver = CaptchaSolver('antigate', api_key='ANTIGATE_KEY')
# or local browser
solver = CaptchaSolver('browser')
raw_data = open('captcha.png', 'rb').read()
print(solver.solve_captcha(raw_data))

Alternatives / Similar