Skip to content

unicapsvscaptcha_solver

Apache-2.0 4 1 227
561 (month) Jul 27 2020 1.3.0(1 year, 5 months ago)
244 2 10 MIT
Feb 17 2015 4.4 thousand (month) 0.1.5(6 years ago)

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


Was this page helpful?