-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
需要使用python+selenium+selenium-wire对浏览器的请求响应数据进行获取,在启动ChromeDriver中设置--proxy-server参数后Captcha solver谷歌插件就无法正常运行了,表现是会自动点击谷歌圆圈弹出谷歌的识别图,但是不会对图片内容进行自动识别。
插件配置是ok的,去掉--proxy-server参数能正常识别和绕过。
环境:
- 插件版本:Capcha Solver 1.14.5(谷歌应用商店下载)
- 系统:MacOS 13.5.1
- Chrome版本:129.0.6668.59
ENABLE_CHROME_COMMAND = '/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --remote-debugging-port=1234 --user-data-dir="/Users/xxxx/Chrome" --proxy-server=http://localhost:12345 --disable-infobars'
process = os.popen(ENABLE_CHROME_COMMAND)
chrome_options = Options()
chrome_options.add_experimental_option("debuggerAddress", "127.0.0.1:{}".format(CHROME_DEBUG_PORT))
seleniumwire_options = {
'request_storage_base_dir': os.path.join(os.getcwd(), "seleniumwire"),
'request_storage_max_size': 100,
'port': 12345
}
s = Service(r"./chromedriver")
driver = webdriver.Chrome(service=s, options=chrome_options, seleniumwire_options=seleniumwire_options)
driver.get("https://www.google.com/recaptcha/api2/demo")
time.sleep(200)
driver.quit()
Metadata
Metadata
Assignees
Labels
No labels