Saving a picture contained in a web page to disk
Irmen de Jong
irmen at -NOSPAM-REMOVETHIS-xs4all.nl
Wed Nov 12 18:16:00 EST 2003
Giulio Cespuglio wrote:
> I would like to save to disk a picture contained in a webpage.
>
> Unfortunately the image is dynamic, so the url is actually a query
> which looks like
>
> http://adfarm.mediaplex.com/ad/bn/2397-11787-1843-5?mpt=1068644406357385
>
> rather than the standard
>
> http://img-cdn.mediaplex.com/ads/2397/11787/q2_dell_inspiron_120x600.gif
Unless you have more requirements that you did not mention, I fail
to see why this is a problem, and why you have to write a program
to do this.
Right click the image, 'save image as'.
Or use a tool such as wget or curl to directly download
the URL above, even the 'dynamic one'.
--Irmen
More information about the Python-list
mailing list