Skip to content

captcha_solvervsunicaps

MIT 10 2 255
11.4 thousand (month) Feb 17 2015 0.1.5(2019-03-01 21:41:21 ago)
235 1 5 Apache-2.0
Jul 27 2020 251 (month) 1.3.0(2024-02-29 20:17:57 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


```python 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)) ```
```python from unicaps import CaptchaSolver, CaptchaSolvingService solver = CaptchaSolver(CaptchaSolvingService.TWOCAPTCHA, api_key="") 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?