Urllib2. Urlerror: <urlopen error [Errno 104] Connection reset by peer>

Source: Internet
Author: User
Tags connection reset

http://www.dianping.com/shop/8010173

File "Integrated Mall 1.py", line-in <module>
Httpcrawler (URL)
File "Integrated Mall 1.py", line-up, in Httpcrawler
Geteachshop (shops)
File "Integrated Mall 1.py", line +, in Geteachshop
Details = HttpRequest (shopurl)
File "Integrated Mall 1.py", line-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>

Urllib2. Urlerror: <urlopen error [Errno 104] Connection reset by Peer>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.