【踩坑】解决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

相关推荐
MyBili1 小时前
Chrome同步机制详解:多设备数据打通与加密配置全攻略
chrome·数据加密·故障排查·同步机制·账号安全·多设备协同·google账号安全
LinXunFeng2 小时前
A2UI 1.0 详解:让 AI 生成 Flutter 界面,还不怕它乱写
前端·flutter·agent
Wellijohn12 小时前
我把公司内部的 12 个 CRUD 接口交给了 AI Agent,然后省出了两周
人工智能·python·mcp
2601_9679801114 小时前
python pytest怎样测试代码
python·pytest·测试·文档·断言
伞伞悦读14 小时前
【第92期】逻辑回归的分数概率与阈值的实验与排查
人工智能·python·深度学习·机器学习
ch62315 小时前
🚀 从零构建本地文档智能审查 Agent:Vibe Coding 实战指南
python
FRing0315 小时前
vue3干货总结3(defineOptions(Vue3.3)、defineModel(Vue3.4)、Pinia)
开发语言·前端·vue.js·vue3
Bczheng115 小时前
组件化服务端渲染模式SSR
前端
摇滚侠15 小时前
《On Java 中文版 基础卷》阅读笔记 接口 18
java·笔记·python
Thanks_ks16 小时前
AI Agent 开发入门:用 Function Calling 让大模型学会 “动手干活”,附订单查询机器人实战
python·ai·大模型·openai·agent·通义千问·mcp