Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

爬虫登录失败 #37

Open
JiayangWu opened this issue Jun 30, 2023 · 6 comments
Open

爬虫登录失败 #37

JiayangWu opened this issue Jun 30, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@JiayangWu
Copy link
Owner

从6.25开始爬虫无法登陆成功,http返回代码为500,即服务器内部错误,与爬虫脚本无关。

@JiayangWu JiayangWu added the bug Something isn't working label Jun 30, 2023
@JiayangWu
Copy link
Owner Author

换了个浏览器手动登录成功之后,问题自动解决。

@CompetitiveLin
Copy link

CompetitiveLin commented Aug 24, 2023

作者你好,请问是这样吗
Screenshot 2023-08-24 at 16 25 08

我发现我的账号近期在浏览器上登陆时,提示需要先用手机号登陆后方可用账号密码登陆。并且我咨询了 Leetcode 支持,对方给的回复是

您好,
感谢您的耐心等待,与相关团队确认:这种情况多是账号命中了账号限制逻辑,同时登录设备超限制了,近期我们优化了账号登录限制,想和您确认一下错误提示具体是什么?也建议在脚本中手动退出试试。
Best Regards,
Leetcode | Support Team

因此我在想有可能是每个账号在一个陌生的浏览器登陆前需要用手机验证码验证一次

@JiayangWu
Copy link
Owner Author

感谢提出Issue! 目前解决办法是手动在浏览器里获取用手机号登陆成功之后的 cookie,然后手动添加到脚本的session里,这样可以登陆成功。具体的脚本更新会在几天内发布。 @CompetitiveLin

@CompetitiveLin
Copy link

感谢提出Issue! 目前解决办法是手动在浏览器里获取用手机号登陆成功之后的 cookie,然后手动添加到脚本的session里,这样可以登陆成功。具体的脚本更新会在几天内发布。 @CompetitiveLin

这个cookie会有过期时间吗

@JiayangWu
Copy link
Owner Author

感谢提出Issue! 目前解决办法是手动在浏览器里获取用手机号登陆成功之后的 cookie,然后手动添加到脚本的session里,这样可以登陆成功。具体的脚本更新会在几天内发布。 @CompetitiveLin

这个cookie会有过期时间吗

会的,目前看是一个月过期时间。

@JiayangWu JiayangWu self-assigned this Sep 1, 2023
@CompetitiveLin
Copy link

按照你的思路,是可以直接用cookie的方法,但是一个月换一次cookie,我只能说我太懒了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants