[Tutor] urlretrieve

Kent Johnson kent37 at tds.net
Fri Jan 12 20:26:43 CET 2007


Ron Nixon wrote:
> Is there a way to get the urlretrive module to grab multiple files 
> similar to wget?

I'm not familiar enough with wget to know exactly what you are looking 
for. urllib.urlretrieve() just grabs a single file. If you want a bunch 
of named files, just put it in a loop. If you are trying to retrieve a 
whole web site you might be interested in HarvestMan, either as working 
code or a source of ideas:
http://harvestman.freezope.org/

Kent



More information about the Tutor mailing list