您的位置:首页 > 运维架构

urllib2.URLError: <urlopen error [Errno 104] Connection reset by peer>

2015-07-21 10:58 573 查看
http://www.dianping.com/shop/8010173

File "综合商场1.py", line 152, in <module>
httpCrawler(url)
File "综合商场1.py", line 34, in httpCrawler
getEachShop(shops)
File "综合商场1.py", line 110, in getEachShop
details = httpRequest(shopurl)
File "综合商场1.py", line 52, in httpRequest
resp = urllib2.urlopen(req,None,req_timeout)
File "/usr/lib64/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib64/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/lib64/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib64/python2.6/urllib2.py", line 1190, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib64/python2.6/urllib2.py", line 1165, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 104] Connection reset by peer>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: