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

更新:

发现一个非常好用的项目,直接内置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

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

相关接口介绍:

【教程】新的Selenium!整合了隐藏浏览器指纹等功能


网上方法都试了,什么指定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)
  • 1.
  • 2.
  • 3.
  • 4.

Chrome浏览器便携包:

 ChromeDriver Latest Releases Versions Downloads - Chrome for Testing availability

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