【踩坑】解决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自己的吧:

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. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-10 13:24:06       4 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-10 13:24:06       5 阅读
  3. 在Django里面运行非项目文件

    2024-07-10 13:24:06       4 阅读
  4. Python语言-面向对象

    2024-07-10 13:24:06       5 阅读

热门阅读

  1. Electron Forge 打包更改打包后图片

    2024-07-10 13:24:06       12 阅读
  2. 【ES】--Elasticsearch的高亮模式

    2024-07-10 13:24:06       12 阅读
  3. JVM专题九:JVM分代知识点梳理

    2024-07-10 13:24:06       8 阅读
  4. 谈谈检测浏览器类型

    2024-07-10 13:24:06       7 阅读
  5. npm 常用命令详解与实践

    2024-07-10 13:24:06       11 阅读
  6. node.js 面试题 1

    2024-07-10 13:24:06       8 阅读
  7. Eureka应用场景和优势

    2024-07-10 13:24:06       11 阅读
  8. ESP32-C3模组上跑通AES-GCM(5)

    2024-07-10 13:24:06       9 阅读
  9. 如何在电子文件上加盖印章

    2024-07-10 13:24:06       11 阅读