Error while downloading webpages

2011-07-06 Thread TimB
Hi everyone, new to python. I'm attempting to download a large amount of webpages (about 600) to disk and for some reason a few of them fail. I'm using this in a loop where pagename and urlStr change each time: import urllib try: urllib.urlretrieve(urlStr, 'webpages/'+pagename+'.htm')

Re: Error while downloading webpages

2011-07-06 Thread TimB
On Jul 6, 5:39 pm, TimB wrote: > Hi everyone, new to python. I'm attempting to download a large amount > of webpages (about 600) to disk and for some reason a few of them > fail. > > I'm using this in a loop where pagename and urlStr change each time: