延长登录等待时间
This commit is contained in:
@@ -1163,6 +1163,7 @@ def playwright_login(username, password, code_2fa=None):
|
||||
page.click('//button[@name="login"]')
|
||||
|
||||
page.wait_for_load_state()
|
||||
time.sleep(random.randint(3, 10))
|
||||
# 设置语言为英文
|
||||
context.add_cookies([
|
||||
{
|
||||
@@ -1175,7 +1176,9 @@ def playwright_login(username, password, code_2fa=None):
|
||||
"secure": False,
|
||||
},
|
||||
])
|
||||
time.sleep(random.randint(1, 10))
|
||||
page.reload()
|
||||
time.sleep(random.randint(1, 10))
|
||||
|
||||
# captcha_img = page.query_selector_all('//img[contains(@src, "captcha")]')
|
||||
# if captcha_img:
|
||||
|
||||
Reference in New Issue
Block a user