Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capsolver谷歌扩展使用selenium-wire无法自动识别谷歌图灵验证 #19

Open
jdhkai opened this issue Oct 6, 2024 · 0 comments

Comments

@jdhkai
Copy link

jdhkai commented Oct 6, 2024

需要使用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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant