[2.5.1] Script to download and rename bunch of files?

2011-04-08 Thread Gilles Ganault
Hello, Before I go ahead and learn how to write this, I was wondering if someone knew of some source code I could use to download and rename a bunch of files, ie. the equivalent of wget's -O switch? I would provide a two-column list where column 1 would contain the full URL, and column 2

Re: [2.5.1] Script to download and rename bunch of files?

2011-04-08 Thread Laurent Claessens
Le 08/04/2011 14:47, Gilles Ganault a écrit : Hello, Before I go ahead and learn how to write this, I was wondering if someone knew of some source code I could use to download and rename a bunch of files, ie. the equivalent of wget's -O switch? I would provide a two-column list where

Re: [2.5.1] Script to download and rename bunch of files?

2011-04-08 Thread Gilles Ganault
On Fri, 08 Apr 2011 15:14:27 +0200, Laurent Claessens moky.m...@gmail.com wrote: The following puts in the string `a` the code of the page urlBase : a = urllib.urlopen(urlBase).read() Then you have to write `a` in a file. There could be better way. Thank you. --