MackOsmium/SolveCaptcha

CAPTCHAFORUM

Administrator
Install
$ pip install git+git://github.com/MackOsmium/SolveCaptcha
or
Code:
$ git clone https://github.com/mackosmium/solvecaptcha.git
$ cd SolveCaptcha
$ pip install

Quick Examples for ReCaptcha V2
Code:
>>> from solvecaptcha import TwoCaptcha
>>> twocaptcha = TwoCaptcha(API_KEY)
>>> print(twocaptcha)
<TwoCaptcha balance=10.42>
>>> response = twocaptcha.recaptcha_v2(googlekey, pageurl)
>>> # POST response.solution
>>> response.report_good()  # Or response.report_bad()
Alternatively, you may not want to wait for the recaptcha solution instantly and instead, use the time it is being solved to do other processing. Then at a later time call get_solution() yourself.

Example:
Code:
>>> response = twocaptcha.recaptcha_v2(googlekey, pageurl, wait=False)
>>> # Do expensive stuff here
>>> response.get_solution()
>>> # POST response.solution
>>> response.report_good()  # Or response.report_bad()

Try it out the async module using python3 -m asyncio

Example:
Code:
>>> from solvecaptcha import AIOTwoCaptcha
>>> twocaptcha = AIOTwoCaptcha(API_KEY)
>>> response = await twocaptcha.recaptcha_v2(googlekey, pageurl)

Documentation https://githubmemory.com/repo/MackOsmium/SolveCaptcha