[Python] Selenium ReCaptcha V3 score issue

Discussão em 'Python' iniciado por Stack, Abril 16, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to solve ReCaptcha with Selenium, Python, but I keep getting 0.1 score on Score Detector. I tried all methods I could find on Stackoverflow (here and here) but it didn't help, or maybe I did something wrong? Is there any ways to solve this problem?

    Here is the code:

    from seleniumwire import webdriver

    user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
    chrome_arguments = [
    "--log-level=3",
    "--mute-audio",
    "--disable-blink-features=AutomationControlled",
    f"--user-agent={user_agent}",
    '--ignore-ssl-errors=yes',
    '--ignore-certificate-errors',
    "start-maximized",
    "--allow-running-insecure-content"
    ]
    options = webdriver.ChromeOptions()
    for a in chrome_arguments:
    options.add_argument(a)
    options.add_experimental_option("excludeSwitches", ['enable-logging'])
    options.add_experimental_option("excludeSwitches", ['enable-automation'])
    options.add_experimental_option('useAutomationExtension', False)
    # proxy_options = {
    # "proxy": self.proxies
    # }
    driver = webdriver.Chrome(seleniumwire_options=proxy_options, options=options)
    driver.execute_script("Object.defineProperty(navigator, 'webdriver', {get: () => undefined})")
    driver.execute_cdp_cmd('Network.setUserAgentOverride', {
    "userAgent": user_agent})
    driver.execute_cdp_cmd("Network.setExtraHTTPHeaders", {"headers": {"User-Agent": "browser1"}})


    I already tried either doing it with proxy and without, but still get score 0.1

    Continue reading...

Compartilhe esta Página