Saving a picture contained in a web page to disk

Y2KYZFR1 jarrodhroberson at yahoo.com
Thu Nov 27 08:02:21 CET 2003


Irmen de Jong <irmen at -NOSPAM-REMOVETHIS-xs4all.nl> wrote in message news:<3fb2bf30$0$58705$e4fe514c at news.xs4all.nl>...
> 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


you did miss it, he needs to do it with Python as do I anyone have a
helpful piece of code that works as an example?




More information about the Python-list mailing list