调整linux下执行
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user