diff --git a/utils/sehuatang/shehuatang_undetected.py b/utils/sehuatang/shehuatang_undetected.py index ddb8c95..e55d3cd 100644 --- a/utils/sehuatang/shehuatang_undetected.py +++ b/utils/sehuatang/shehuatang_undetected.py @@ -79,7 +79,8 @@ def fetch_and_create_pdf(url): options.add_argument('--disable-dev-shm-usage') # 创建driver实例 - driver = uc.Chrome(options=options, version_main=None) + # 让 undetected_chromedriver 自动检测浏览器版本并下载匹配的 ChromeDriver + driver = uc.Chrome(options=options) logger.info(f"正在访问: {url}") driver.get(url)