【踩坑】解决undetected-chromedriver报错cannot connect to-chrome

转载请注明出处:小锋学长生活大爆炸[xfxuezhagn.cn]

如果本文帮助到了你,欢迎[点赞、收藏、关注]哦~

更新:

发现一个非常好用的项目,直接内置uc:

GitHub - seleniumbase/SeleniumBase: 📊 Python's all-in-one framework for web crawling, scraping, testing, and reporting. Supports pytest. UC Mode provides stealth. Includes many tools.

浏览器指纹测试:Antibot

相关接口介绍:

【教程】新的Selenium!整合了隐藏浏览器指纹等功能-CSDN博客很好用的一个库https://blog.csdn.net/sxf1061700625/article/details/140238454


网上方法都试了,什么指定version_main、添加option等。

最终,放弃,直接换selenium自己的吧:

python 复制代码
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.service import Service

driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=self.options)

Chrome浏览器便携包:

ChromeDriver Latest Releases Versions Downloads - Chrome for Testing availability

相关推荐
威联通网络存储1 天前
某高端显示面板制造企业:基于威联通 TS-h2490FU 的 AOI 检测数据治理实践
python·制造
arvin_xiaoting1 天前
OpenClaw学习总结_I_核心架构_8:SessionPruning详解
前端·chrome·学习·系统架构·ai agent·openclaw·sessionpruning
工程师老罗1 天前
Image(图像)的用法
java·前端·javascript
FreakStudio1 天前
不用装软件!这款MicroPython浏览器 IDE :让你在手机上也能调试树莓派 Pico
python·单片机·嵌入式·电子diy·tinyml
swipe1 天前
把 JavaScript 原型讲透:从 `[[Prototype]]`、`prototype` 到 `constructor` 的完整心智模型
前端·javascript·面试
问道飞鱼1 天前
【前端知识】React 组件生命周期:从底层原理到实践场景
前端·react.js·前端框架·生命周期
m0_743470371 天前
使用Python进行PDF文件的处理与操作
jvm·数据库·python
CHU7290351 天前
定制专属美丽时刻:美容预约商城小程序的贴心设计
前端·小程序
浩~~1 天前
反射型XSS注入
前端·xss
AwesomeDevin1 天前
AI时代,我们的任务不应沉溺于与 AI 聊天,🤔 从“对话式编程”迈向“数字软件工厂”
前端·后端·架构