How to download a file from an HTTP server given the URL?

J. W. McCall jmccall at houston.rr.com
Thu Jun 17 02:12:45 EDT 2004


Hopefully a simple question: how do I download a file (jpg image) to my 
hard drive from a website assuming I have its (the image's) URL?  I 
tried urllib.urlretrieve() and it's not working.  I'm relatively new to 
Python, so I'm probably make a dumb mistake or looking in the wrong place.

Any help would be appreciated.

Thanks,

J. W. McCall



More information about the Python-list mailing list