[Tutor] file fetcher class object through http

Steven D'Aprano steve at pearwood.info
Sat Aug 20 04:05:25 CEST 2011


Oh, I forgot to mention...


Artie Ziff wrote:

> Essentially, I want to write a class that finds, and downloads a file 
> from a web server.
[...]
> mostly, I am looking for a smart class implementation that has 
> well-considered API and method choices.

Have you looked at the code in the Python standard library itself? E.g.:

http://docs.python.org/library/httplib.html
http://www.voidspace.org.uk/python/articles/urllib2.shtml



-- 
Steven


More information about the Tutor mailing list