2captcha / 2captcha-python

Python 3 package for easy integration with the API of 2captcha captcha solving service to bypass recaptcha, hcaptcha, сloudflare turnstile, funcaptcha, geetest and solve any other captchas.
https://pypi.org/project/2captcha-python
MIT License
532 stars 91 forks source link

Use Proxy #7

Closed LeilaSchooley closed 3 years ago

LeilaSchooley commented 3 years ago

How can I use a proxy with the solver? I'd be interested in doing so in order to change IP.

2captcha commented 3 years ago

Hi!

Yes, you can pass a proxy with your captcha in the following format and our API will use the proxy to solve your captcha:

        proxy={
            'type': 'HTTPS',
            'uri': 'login:password@IP_address:PORT'
        }

https://github.com/2captcha/2captcha-python/blob/master/examples/recaptcha_v2_options.py#L18