[urllib2 + Tor] How to handle 404?

2008-11-07 Thread Gilles Ganault
Hello I'm using the urllib2 module and Tor as a proxy to download data from the web. Occasionnally, urlllib2 returns 404, probably because of some issue with the Tor network. This code doesn't solve the issue, as it just loops through the same error indefinitely: = for id in rows:

Re: [urllib2 + Tor] How to handle 404?

2008-11-07 Thread Chris Rebert
On Fri, Nov 7, 2008 at 12:05 AM, Gilles Ganault [EMAIL PROTECTED] wrote: Hello I'm using the urllib2 module and Tor as a proxy to download data from the web. Occasionnally, urlllib2 returns 404, probably because of some issue with the Tor network. This code doesn't solve the issue,

Re: [urllib2 + Tor] How to handle 404?

2008-11-07 Thread Steven McKay
On Fri, Nov 7, 2008 at 2:28 AM, Chris Rebert [EMAIL PROTECTED] wrote: On Fri, Nov 7, 2008 at 12:05 AM, Gilles Ganault [EMAIL PROTECTED] wrote: Hello I'm using the urllib2 module and Tor as a proxy to download data from the web. Occasionnally, urlllib2 returns 404, probably