Reg: scrappring error

2015-01-12 Thread Sushanth
​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,

Re: Reg: scrappring error

2015-01-12 Thread Emile van Sebille
On 1/11/2015 9:27 PM, Sushanth wrote: SNIP urllib2.HTTPError: HTTP Error 302: The HTTP server returned a redirect error that would lead to an infinite loop. Looks like the server has a link on this page pointing back to itself or somesuch. Does this help? Emile --