From f8ee4a1bc98e8ca0b203629f0d1c1909c631fcd6 Mon Sep 17 00:00:00 2001 From: work Date: Wed, 21 May 2025 18:06:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=AA=8C=E8=AF=81=E7=A0=81?= =?UTF-8?q?=E7=AD=89=E5=BE=85=E6=97=B6=E9=97=B4=E5=BB=B6=E9=95=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spider/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spider/task.py b/spider/task.py index 16cf211..5727ed7 100644 --- a/spider/task.py +++ b/spider/task.py @@ -1207,7 +1207,7 @@ def playwright_login(username, password, code_2fa=None): page.locator('//img[contains(@src, "captcha")]/parent::div/parent::div/div').nth(4).click() else: raise OperationFailed('验证码解析错误') - time.sleep(5) + time.sleep(8) page.wait_for_load_state() h2 = page.query_selector("//h2/span") if h2 is None: