轉載請注明出處:小鋒學長生活大爆炸[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 Servicedriver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=self.options)
Chrome瀏覽器便攜包:
ChromeDriver Latest Releases Versions Downloads - Chrome for Testing availability