Selenium and Python

balice

Новичок
Регистрация
24.12.2020
Сообщения
2
Благодарностей
0
Баллы
1
How can I use Capmonster with Python to solve reCaptcha v2, etc...?
 

nicanil

Client
Регистрация
06.03.2016
Сообщения
2 242
Благодарностей
1 820
Баллы
113
Hello.
CapMonster2 can emulate manual recognition services, such as 2captcha, anti-captcha. You should select which services CM will emulate in the Settings-Captcha Servives and then restart the programm.

You can use this python module for AntiCaptcha https://github.com/ad-m/python-anticaptcha, it has examples for Selenium.
If you will get SSL_ERROR, set use_ssl to false, when creating AnticaptchaClient instance:
client = AnticaptchaClient(api_key, use_ssl=False)

If you, by some reason, don't want CapMonster emulate Anti-Captcha, you can specify host parameter and use CapMonster ip for it:
client = AnticaptchaClient(api_key, host="127.0.0.3", use_ssl=False)
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)