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*
-- https://mail.python.org/mailman/listinfo/python-list