Simple instructions on how to programmatically download an image from a web page?

Dan Bishop danb_83 at yahoo.com
Thu Nov 27 12:10:45 CET 2003


jarrodhroberson at yahoo.com (Y2KYZFR1) wrote in message news:<c718a6cf.0311262300.1b62e6c0 at posting.google.com>...
> I have search the group and not found a working example on how to
> simply download a .gif from a url.
> 
> something as simple as
> http://groups.google.com/images/threadview_logo.gif should be pretty
> easy, guess not?
> 
> I don't need to know about using a browser, I need to know how to do
> it programmatically from Python.
> 
> Anyone know how to get it done?

Try the urllib.urlopen function.




More information about the Python-list mailing list