Awesome Open Source
Awesome Open Source

============== Captcha Solver

.. image:: https://travis-ci.org/lorien/captcha_solver.png?branch=master :target: https://travis-ci.org/lorien/captcha_solver?branch=master

.. image:: https://coveralls.io/repos/lorien/captcha_solver/badge.svg?branch=master :target: https://coveralls.io/r/lorien/captcha_solver?branch=master

Univeral API to captcha solving services.

Installation

.. code:: bash

pip install captcha-solver

Twocaptcha Backend Example

Service website is https://2captcha.com?from=3019071

.. code:: python

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

Service website is https://rucaptcha.com?from=3019071

.. code:: python

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:: python

from captcha_solver import CaptchaSolver

solver = CaptchaSolver('browser')
raw_data = open('captcha.png', 'rb').read()
print(solver.solve_captcha(raw_data))

Antigate Backend Example

Service website is http://getcaptchasolution.com/ijykrofoxz

.. code:: python

from captcha_solver import CaptchaSolver

solver = CaptchaSolver('antigate', api_key='ANTIGATE_KEY')
raw_data = open('captcha.png', 'rb').read()
print(solver.solve_captcha(raw_data))

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (53,705
api (1,694
captcha (81
recaptcha (44