2captcha-python 1.1.0

CAPTCHAFORUM

Administrator
1644311283902.png

Documentation https://pypi.org/project/2captcha-python/

Python Module for 2Captcha API
The easiest way to quickly integrate 2Captcha captcha solving service into your code to automate solving of any types of captcha.

Installation
This package can be installed with Pip:
pip3 install 2captcha-python

Configuration
TwoCaptcha instance can be created like this:
Code:
from twocaptcha import TwoCaptcha
solver = TwoCaptcha('YOUR_API_KEY')


Also there are few options that can be configured:
Code:
config = {

            'server':           '2captcha.com',

            'apiKey':           'YOUR_API_KEY',

            'softId':            123,

            'callback':         'https://your.site/result-receiver',

            'defaultTimeout':    120,

            'recaptchaTimeout':  600,

            'pollingInterval':   10,

        }

solver = TwoCaptcha(**config)