调整chrome内容

This commit is contained in:
liuwei
2025-05-06 17:09:08 +08:00
parent d2fbfdfde9
commit 3b8acf8864

View File

@@ -84,7 +84,7 @@ def fetch_images(post_url):
options = Options()
options.add_argument('--headless') # 使用新的headless模式
options.add_argument('--disable-gpu')
options.add_argument('--no-sandbox')
# options.add_argument('--no-sandbox')
options.add_argument('--disable-dev-shm-usage') # 添加Linux特定配置
options.headless = True