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

相关推荐
a111776几秒前
三色软糖坠落玻璃池 THreeJS kimi
前端·人工智能·threejs
Black_Rock_br4 分钟前
打通 PyTorch Monarch 与 ROCm:单 Controller 架构的异构算力实战
人工智能·pytorch·python·开源
其实防守也摸鱼11 分钟前
Kimi K3深度测评:长文本之外的真实力
运维·开发语言·网络·人工智能·python·学习·安全
weixin_BYSJ198713 分钟前
springboot3家政平台小程序--附源码00904
java·javascript·spring boot·python·django·flask·php
风痕天际33 分钟前
Pytorch开发教程1——CUDA安装
人工智能·pytorch·python
geovindu1 小时前
python: Breadth First Search Algorithm and Depth First Search Algorithm
开发语言·后端·python·算法·搜索算法
程序员果子1 小时前
CrewAI :当 Agent 学会团队协作
人工智能·git·python·多智能体·agent框架
玉鸯1 小时前
向量检索不是记忆:Agent 记忆的三层进化
python·agent
大模型码小白1 小时前
Java 部署:Jenkins Pipeline 构建 Java 项目(自动化)
java·人工智能·python·机器学习
凤山老林1 小时前
防抖与节流:解决Web前段高频事件,性能优化的”YYDS“
前端·防抖节流