Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #83603
| Date | 2015-01-12 05:27 +0000 |
|---|---|
| Subject | Reg: scrappring error |
| From | Sushanth <sushanthece@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.17617.1421058953.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
Traceback (most recent call last):
File "sample.py", line 28, in <module>
scrape_data(row['All Samples'],row['URL'])
File "sample.py", line 13, in scrape_data
html = etree.HTML(urllib2.urlopen(url).read())
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 410, in open
response = meth(req, response)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 442, in error
result = self._call_chain(*args)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 382, in _call_chain
result = func(*args)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 410, in open
response = meth(req, response)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 442, in error
result = self._call_chain(*args)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 382, in _call_chain
result = func(*args)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 410, in open
response = meth(req, response)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 442, in error
result = self._call_chain(*args)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 382, in _call_chain
result = func(*args)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 410, in open
response = meth(req, response)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 442, in error
result = self._call_chain(*args)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 382, in _call_chain
result = func(*args)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 410, in open
response = meth(req, response)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 442, in error
result = self._call_chain(*args)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 382, in _call_chain
result = func(*args)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 410, in open
response = meth(req, response)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 442, in error
result = self._call_chain(*args)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 382, in _call_chain
result = func(*args)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 410, in open
response = meth(req, response)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 442, in error
result = self._call_chain(*args)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 382, in _call_chain
result = func(*args)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 410, in open
response = meth(req, response)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 442, in error
result = self._call_chain(*args)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 382, in _call_chain
result = func(*args)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 410, in open
response = meth(req, response)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 442, in error
result = self._call_chain(*args)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 382, in _call_chain
result = func(*args)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 410, in open
response = meth(req, response)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 442, in error
result = self._call_chain(*args)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 382, in _call_chain
result = func(*args)
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py", line 619, in http_error_302
self.inf_msg + msg, headers, fp)
urllib2.HTTPError: HTTP Error 302: The HTTP server returned a redirect
error tha
t would lead to an infinite loop.
The last 30x error message was:
Found
--
*Regards*
*Sushanth*
*ph : 91-9949472210*
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Reg: scrappring error Sushanth <sushanthece@gmail.com> - 2015-01-12 05:27 +0000
csiph-web