Re: urllib2 error

2010-11-17 Thread asit dhal
On Wed, Nov 17, 2010 at 5:31 PM, Kushal Kumaran wrote: > On Wed, Nov 17, 2010 at 5:18 PM, asit wrote: >> I have this piece of code >> >> import urllib2 >> >> proc_url = 'http://www.nse-india.com/content/historical/EQUITIES/2001/ >> JAN/cm01JAN2001bhav.csv.zip' >> print 'processing', proc_url

Re: urllib2 error

2010-11-17 Thread Kushal Kumaran
On Wed, Nov 17, 2010 at 5:18 PM, asit wrote: > I have this piece of code > > import urllib2 > > proc_url = 'http://www.nse-india.com/content/historical/EQUITIES/2001/ > JAN/cm01JAN2001bhav.csv.zip' > print 'processing', proc_url > req = urllib2.Request(proc_url) > res = urllib2.urlopen(req) >