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

一次成功后就再也不行了 #1

Open
emaiqi opened this issue Nov 6, 2018 · 1 comment
Open

一次成功后就再也不行了 #1

emaiqi opened this issue Nov 6, 2018 · 1 comment

Comments

@emaiqi
Copy link

emaiqi commented Nov 6, 2018

最近也在写七麦的爬虫,有幸看到了您的成品,给了我很大的帮助。但有个问题,第一次确实是能成功获取到数据,但之后不管是不是用代理,都不再成功,总是返回“{'code': 10602, 'msg': 'Access Limit R'}”,看样子估计是被限制了。不知您有什么解决办法。

@Henryhaohao
Copy link
Owner

抱歉,昨天没看到邮件,不好意思~
我刚看了一下,源代码是会返回失败;
但只要headers里加上'Referer':'https://www.qimai.cn/rank' 这句就好了,返回成功了!
另外我的常用邮箱是[email protected], 你发的这个是我小号的邮箱耶,所以我昨晚才看到,抱歉
最后,感谢你对我github项目的支持~:heart: @emaiqi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants