Skip to content

captcha_solvervsunicaps

MIT 10 2 236
3.3 thousand (month) Feb 17 2015 0.1.5(5 years ago)
211 1 4 Apache-2.0
Jul 27 2020 460 (month) 1.3.0(4 months ago)

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.

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

Example Use


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))
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

Alternatives / Similar


Was this page helpful?