From 1020408f3bde1ea6ed41ae470b4cd3574d46babd Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 6 Nov 2025 23:49:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=A4=B1=E8=B4=A5,=20?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81=E5=A4=B1=E8=B4=A5=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E6=88=AA=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spider/task.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spider/task.py b/spider/task.py index 50b8b08..8c32f41 100644 --- a/spider/task.py +++ b/spider/task.py @@ -978,7 +978,7 @@ def playwright_m_login(username, password, code_2fa=None): failed_login = page.query_selector(failed_login_selector) if failed_login: # 登录失败, 返回失败信息 - page.screenshot(path=f'./log/screenshot/{username}_{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())}_login_failed.png') + page.screenshot(path=f'./log/screenshot/{username}_{time.strftime("%Y-%m-%d%H-%M-%S", time.localtime())}_login_failed.png') logger.info(f"用户名:{username} 密码错误 {failed_login.text_content()}") raise OperationFailed(failed_login.text_content()) @@ -1138,7 +1138,7 @@ if __name__ == '__main__': # # # 视频链接的帖子点赞 # print(playwright_like(cookies, "https://www.facebook.com/groups/1070754870427928/permalink/1873461830157224/")) # - cookies = playwright_m_login('61583069571290', '47lfsryRmI', 'IJ6YM5MX6HEMRRIDSNUMSCEBJEIHVH3R') + cookies = playwright_m_login('61583069571290', '47lfsr123yRmI', 'IJ6YM5MX6HEMRRIDSNUMSCEBJEIHVH3R') print(cookies) # pass