-
Notifications
You must be signed in to change notification settings - Fork 27
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
请问最近会有登陆的问题吗? #44
Comments
是的,一直返回错误代码500。 详见 Issue #37 |
感谢回复。经过实验我发现使用 cookie 登陆可以稳定建立连接。使用如下的header即可。 headers = {'User-Agent': user_agent, 'Referer': sign_in_url, 'Cookie': COOKIES, 'Connection': 'keep-alive'} 我在我的 crawler 里面实现了这个功能 LeetCode-CN-Crawler :) |
如果可以,我可以提交一个PR尝试实现这个功能。希望成为 contributor :) |
欢迎欢迎! |
The cookie interface is implemented in #45 :) |
PR已经merge,感谢贡献! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
RT
The text was updated successfully, but these errors were encountered: