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
myxinn opened this issue Jul 7, 2017 · 1 comment

Comments

@myxinn
Copy link

myxinn commented Jul 7, 2017

dict = {
'first': "true",
'pn': '2',
'kd': 'Java'
}
headers = {
'User-Agent': user_agent,
'Cookies': cookies,
}
r = requests.get('https://www.lagou.com/jobs/positionAjax.json?px=new', params=dict, headers=headers)

print(r.text)
print(r)

out:
<Response [200]>
{"success":false,"msg":"您操作太频繁,请稍后再访问","clientIp":"125.34.78.223"}

试着更换了headers的User-Agent,Cookies,加了代理proxies,都不行,

帮忙看下哪里出问题啦

@myxinn
Copy link
Author

myxinn commented Jul 9, 2017

解决了
headers中 加上 Referer就可以了

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

1 participant