调整linux下执行

This commit is contained in:
liuwei
2025-04-30 16:44:14 +08:00
parent 7f93f14432
commit b62bc2d191

View File

@@ -48,6 +48,7 @@ def fetch_and_create_pdf(url):
options.headless = True
options.add_argument('--disable-gpu')
options.add_argument('--no-sandbox')
options.add_argument('--headless')
# 使用本地固定的ChromeDriver路径避免每次自动更新
chrome_driver_path = os.path.join(