ultrafunkamsterdam / undetected-chromedriver

Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM)
https://github.com/UltrafunkAmsterdam/undetected-chromedriver
GNU General Public License v3.0
9.76k stars 1.15k forks source link

This version of ChromeDriver only supports Chrome version xx ++++ HTTP Error 404: Not Found #1465

Closed alimp5 closed 1 year ago

alimp5 commented 1 year ago

Greetings ! UC => 3.5.2 selenium => 4.11.2 selenium-wire => 5.1.0

I defined the chrome-driver path for chrome ver115 manually and didn't work.

self.driver = uc.Chrome (use_subprocess=True, options=self.chrome_options, version_main=self.chrome_ver, user_data_dir=self.profile_path, seleniumwire_options=sw_options, executable_path=self.chrome_driver_path)

We have new changes on Chrome Driver 115 and UC can't fetch the release number and get new chrome driver for version 115.

https://chromedriver.chromium.org/downloads

Current Releases

    If you are using Chrome version 115 or newer, please consult the Chrome for Testing availability dashboard. This page provides convenient JSON endpoints for specific ChromeDriver version downloading.

    For older versions of Chrome, please see below for the version of ChromeDriver that supports it.

For more information on selecting the right version of ChromeDriver, please see the Version Selection page.

ChromeDriver 114.0.5735.90

Error:


Traceback (most recent call last):
  File "C:\ea_env\ea_games\ea_app\models.py", line 368, in save
    resp = SeleniumLogin(bot_info).run_browser()
  File "C:\ea_env\ea_games\ea_app\all_utils\selenium_login_sw.py", line 237, in run_browser
    self.driver = uc.Chrome(use_subprocess=True,  options=self.chrome_options,  version_main=self.chrome_ver,  user_data_dir=self.profile_path,  seleniumwire_options=sw_options, executable_path=self.chrome_driver_path)
  File "C:\ea_env\lib\site-packages\seleniumwire\undetected_chromedriver\webdriver.py", line 61, in __init__
    super().__init__(*args, **kwargs)
  File "C:\ea_env\lib\site-packages\undetected_chromedriver\__init__.py", line 258, in __init__
    self.patcher.auto()
  File "C:\ea_env\lib\site-packages\undetected_chromedriver\patcher.py", line 157, in auto
    release = self.fetch_release_number()
  File "C:\ea_env\lib\site-packages\undetected_chromedriver\patcher.py", line 225, in fetch_release_number
    return LooseVersion(urlopen(self.url_repo + path).read().decode())
  File "C:\Python38\lib\urllib\request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "C:\Python38\lib\urllib\request.py", line 531, in open
    response = meth(req, response)
  File "C:\Python38\lib\urllib\request.py", line 640, in http_response
    response = self.parent.error(
  File "C:\Python38\lib\urllib\request.py", line 569, in error
    return self._call_chain(*args)
  File "C:\Python38\lib\urllib\request.py", line 502, in _call_chain
    result = func(*args)
  File "C:\Python38\lib\urllib\request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
[models.py file] error: None
Traceback (most recent call last):
  File "C:\ea_env\ea_games\ea_app\models.py", line 368, in save
    resp = SeleniumLogin(bot_info).run_browser()
  File "C:\ea_env\ea_games\ea_app\all_utils\selenium_login_sw.py", line 237, in run_browser
    self.driver = uc.Chrome(use_subprocess=True,  options=self.chrome_options,  version_main=self.chrome_ver,  user_data_dir=self.profile_path,  seleniumwire_options=sw_options, executable_path=self.chrome_driver_path)
  File "C:\ea_env\lib\site-packages\seleniumwire\undetected_chromedriver\webdriver.py", line 61, in __init__
    super().__init__(*args, **kwargs)
  File "C:\ea_env\lib\site-packages\undetected_chromedriver\__init__.py", line 258, in __init__
    self.patcher.auto()
  File "C:\ea_env\lib\site-packages\undetected_chromedriver\patcher.py", line 157, in auto
    release = self.fetch_release_number()
  File "C:\ea_env\lib\site-packages\undetected_chromedriver\patcher.py", line 225, in fetch_release_number
    return LooseVersion(urlopen(self.url_repo + path).read().decode())
  File "C:\Python38\lib\urllib\request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "C:\Python38\lib\urllib\request.py", line 531, in open
    response = meth(req, response)
  File "C:\Python38\lib\urllib\request.py", line 640, in http_response
    response = self.parent.error(
  File "C:\Python38\lib\urllib\request.py", line 569, in error
    return self._call_chain(*args)
  File "C:\Python38\lib\urllib\request.py", line 502, in _call_chain
    result = func(*args)
  File "C:\Python38\lib\urllib\request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
own3mall commented 1 year ago

Have the same issue. :(

max32002 commented 1 year ago

use chromedriver-autoinstaller to download chromedriver, https://github.com/max32002/python-chromedriver-autoinstaller

and assign chrome driver file to driver_executable_path argument. driver = uc.Chrome(driver_executable_path=chromedriver_path)

pguardiario commented 11 months ago

Is there a trick to setting chromedriver_path? Should it be the full path? include the filename?

alimp5 commented 11 months ago

Is there a trick to setting chromedriver_path? Should it be the full path? include the filename?

you need full path: C:\......\chromedriver_v116.exe