MackOsmium / SolveCaptcha

CAPTCHAFORUM

Administrator
pandasecurity-captcha-security[1].jpg

SolveCaptcha is a Async/Sync API wrapper for 2captcha with, planned future support for anti-captcha, for Python 3.6+


Features
  • Normal Captcha
  • Text Captcha
  • Recaptcha V2
  • Recaptcha V3
  • GeeTest
  • RotateCaptcha
  • FunCaptcha
  • KeyCaptcha
  • hCaptcha
  • Capy
  • TikTok
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
>>> 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://github.com/MackOsmium/SolveCaptcha