From 4774f6b403b33f99e2e581d9c8ceabb601092f44 Mon Sep 17 00:00:00 2001 From: mshe <666666666@666666666.666666666> Date: Mon, 8 Jun 2026 17:35:36 +0800 Subject: [PATCH] fix bugs --- spider/mail_qq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spider/mail_qq.py b/spider/mail_qq.py index e213992..91c4dab 100644 --- a/spider/mail_qq.py +++ b/spider/mail_qq.py @@ -90,7 +90,7 @@ def crawl_with_saved_state(auth_file): with sync_playwright() as p: # 加载之前保存的登录状态 logging.info(f"加载认证文件: {auth_file}") - browser = p.chromium.launch(headless=False,env={"DISPLAY": display}) # 可以无头模式了 + browser = p.chromium.launch(headless=False) # 可以无头模式了 context = browser.new_context(storage_state=auth_file) page = context.new_page() page.goto('https://mail.qq.com')