From b62bc2d191a7deb79a322260bd034eeae7e767f5 Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 30 Apr 2025 16:44:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4linux=E4=B8=8B=E6=89=A7?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sehuatang/shehuatang.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sehuatang/shehuatang.py b/sehuatang/shehuatang.py index 5265b6d..8537f34 100644 --- a/sehuatang/shehuatang.py +++ b/sehuatang/shehuatang.py @@ -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(