We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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,都不行,
帮忙看下哪里出问题啦
The text was updated successfully, but these errors were encountered:
解决了 headers中 加上 Referer就可以了
Sorry, something went wrong.
No branches or pull requests
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,都不行,
帮忙看下哪里出问题啦
The text was updated successfully, but these errors were encountered: