[英]SSLError: HTTPSConnectionPool(host='www.quandl.com', port=443): Max retries exceeded
[英]Requests SSLError: HTTPSConnectionPool(host='www.recruit.com.hk', port=443): Max retries exceeded with url
我对此感到非常困惑。
这就是我正在使用的。
我正在构建一个刮板,并尝试使用requests.get()
连接到URL。
这是从确实跳到另一个链接的链接。 这是代码:
r = rqs.get('https://www.indeed.hk/rc/clk?jk=ab794b2879313f04&fccid=a659206a7e1afa15')
这是引发的错误:
File "/Users/cecilialee/anaconda/envs/py2/lib/python2.7/site-packages/requests/adapters.py", line 506, in send
raise SSLError(e, request=request)
SSLError: HTTPSConnectionPool(host='www.recruit.com.hk', port=443): Max retries exceeded with url: /jobseeker/JobDetail.aspx?jobOrder=L04146652 (Caused by SSLError(SSLEOFError(8, u'EOF occurred in violation of protocol (_ssl.c:661)'),))
设置verify = False
不能解决此错误。
我已经在网上搜索过,但找不到可以帮助解决我的问题的解决方案。 有人可以帮忙吗?
您可以使用HTTP(但不能使用https)从网站获取信息。
>>> response = requests.get('http://www.recruit.com.hk')
>>> response.status_code
200
>>> len(response.text)
我试过你的代码,没关系:
>>> r = requests.get('https://www.indeed.hk/rc/clk?jk=ab794b2879313f04&fccid=a659206a7e1afa15')
>>> r.status_code
200
>>> len(r.text)
34272
我的环境:
python 2.7.10个请求== 2.5.0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.