Retrieving and saving images from internet address

Wolfram Kraus kraus at hagen-partner.de
Mon Jul 25 11:08:22 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?
> 
Use urllib2:

http://docs.python.org/lib/module-urllib2.html
http://docs.python.org/lib/urllib2-examples.html

HTH,
Wolfram



More information about the Python-list mailing list