无法获取未检测到的chromedriver.exe下载文件

t30tvxxf  于 2023-07-31  发布在  Go
关注(0)|答案(1)|浏览(224)

无法获取undetected-chromedriver.exe下载文件
在Python中使用undetected-chromedriver。我已经使用pip install undetected-chromedriver安装了undetected-chromedriver
下面是我的代码

import undetected_chromedriver as uc
driver = uc.Chrome()
# Setting Driver Implicit Time out for An Element
driver.implicitly_wait(10)
# Maximize the window
driver.maximize_window()
time.sleep(2000)
print("maxmized window")
driver.get("http://example.net")

字符串
错误我得到与上述代码一旦浏览器启动如下

DevTools listening on ws://127.0.0.1:65496/devtools/browser/a66dad5d-073d-478c-a291-e29a127a2ecb        
[15220:11524:0210/192501.116:ERROR:device_event_log_impl.cc(218)] [19:25:01.116] USB: usb_device_handle_win.cc:1046 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[15220:11524:0210/192501.123:ERROR:device_event_log_impl.cc(218)] [19:25:01.123] USB: usb_device_handle_win.cc:1046 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)


https://pypi.org/project/undetected-chromedriver/#history
我需要未检测到的-chromedriver的exe,你能帮忙吗
另外,在示例化时,我无法找到声明,但是我已经安装了pip install undetected-chromedriver x1c 0d1x

ogsagwnx

ogsagwnx1#

当我尝试执行脚本并使用undetected-chromedriver时,它不需要可执行文件,因为它会下载chromedriver并对其进行修补
优化的Selenium Chromedriver补丁不会触发反机器人服务,如Distill Network / Imperva / DataDome /Botprotect.io自动下载驱动程序二进制文件并对其进行修补。
来源:here

相关问题