Selenium and Python

  • Автор темы Автор темы balice
  • Дата начала Дата начала

balice

Новичок
Регистрация
24.12.2020
Сообщения
2
Реакции
0
Баллы
1
How can I use Capmonster with Python to solve reCaptcha v2, etc...?
 
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)
 

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