Retrieving and saving images from internet address

user at domain.invalid user at domain.invalid
Mon Jul 25 12:26:43 CEST 2005


rock69 wrote:
> Hi all :)
> 
> I got this address:
> 
> http://www.infomedia.it/immagini/riviste/covers/cp/cp137.jpg
> 
> and I would like to download that image and save it to a local file.
> How do you do that in Python?

I'd use urllib.urlretrieve, "Copy a network object denoted by a URL to a 
local file, if necessary."

--
dOb



More information about the Python-list mailing list