requests.exceptions.ConnectionError-Connection-aborted

###使用requests库抓取https的页面报如下错误:

1
2
3
4
5
6
7
8
9
10
    r = s.get(url=url, verify=False, headers=headers)
File "/Users/higgs/.virtualenvs/spider/lib/python2.7/site-packages/requests/sessions.py", line 501, in get
return self.request('GET', url, **kwargs)
File "/Users/higgs/.virtualenvs/spider/lib/python2.7/site-packages/requests/sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "/Users/higgs/.virtualenvs/spider/lib/python2.7/site-packages/requests/sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "/Users/higgs/.virtualenvs/spider/lib/python2.7/site-packages/requests/adapters.py", line 473, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', error(54, 'Connection reset by peer'))