downloading a image from web using python

Hi.

I am a python noob.

I want to download an image from the web. is it possible using python. I need this for a important project i am working on.


i mean does something like this exist???

fileSave = somePyFunc.DownloadImage(URL)

any help would be appreciated.

thank you for your time.

Satish. :smiley:

It is possible, use httplib: http://www.python.org/doc/current/lib/module-httplib.html (Check the examples)

:smiley: :smiley: :smiley: :smiley:

thank you very much.

hi here is an example from the italian python ML

http://projects.blender.org/snippet/browse.php?by=lang&lang=6

ciao