Traceback (most recent call last):
File "C:\Users\nenuk\OneDrive\Desktop\Creator\32.py", line 556, in <module>
driver = uc.Chrome(options=opts)
File "C:\Users\nenuk\AppData\Local\Programs\Python\Python312\Lib\site-packages\undetected_chromedriver\__init__.py", line 258, in __init__
self.patcher.auto()
File "C:\Users\nenuk\AppData\Local\Programs\Python\Python312\Lib\site-packages\undetected_chromedriver\patcher.py", line 178, in auto
self.unzip_package(self.fetch_package())
File "C:\Users\nenuk\AppData\Local\Programs\Python\Python312\Lib\site-packages\undetected_chromedriver\patcher.py", line 287, in fetch_package
return urlretrieve(download_url)[0]
File "C:\Users\nenuk\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 240, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "C:\Users\nenuk\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 215, in urlopen
return opener.open(url, data, timeout)
File "C:\Users\nenuk\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 521, in open
response = meth(req, response)
File "C:\Users\nenuk\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 630, in http_response
response = self.parent.error(
File "C:\Users\nenuk\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 559, in error
return self._call_chain(*args)
File "C:\Users\nenuk\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 492, in _call_chain
result = func(*args)
File "C:\Users\nenuk\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 639, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
Como posso resolver esse problema, da última vez baixei novamente tudo que funcionou, mas agora não funciona.
Você precisa alterar fetch_package(self) em undetected_chromedriver\patcher.py
Como o download_url antigo não funciona para obter o driver Chrome, você deve usar 'https://storage.googleapis.com/' para substituir o 'https://edgedl.me.gvt1.com/edgedl/chrome/'.
Ainda não funciona ? Arquivo c:\Python310\lib\urllib\request.py:496, em OpenerDirector._call_chain(self, chain, kind, meth_name, *args) 494 para manipulador em manipuladores: 495 func = getattr(handler, meth_name) --> 496 resultado = func(*args) 497 se o resultado não for Nenhum: 498 retorna o resultado
Arquivo c:\Python310\lib\urllib\request.py:643, em HTTPDefaultErrorHandler.http_error_default(self, req, fp, code, msg, hdrs) 642 def http_error_default(self, req, fp, code, msg, hdrs): -> 643 aumentar HTTPError (req.full_url, código, msg, hdrs, fp)
HTTPError: Erro HTTP 404: Não encontrado
Problema resolvido na v3.5.5 para undetected_chromedriver.
desinstale e instale undetected_chromedriver novamente.