Can I 'LOOK' through urllib?
Paul Rubin
http
Wed Feb 11 18:35:07 EST 2009
Muddy Coder <cosmo_general at yahoo.com> writes:
> Now I want to LOOK to server through urllib. I read the urllib docs,
> but I did not find such a function. For example, if there are many
> files located in http://www.somedomain.com/data_folder, but I don't
> know what the filenames are residing in the data_folder. I wish urllib
> would have a function to let me do it, as well as I do 'dir' in DOS,
> 'ls' on unix/linux. Somebody write me a demo? Thanks!
That is done on the server side, and only if the server operator wants
to let you look at the filenames (which is not always). See for example:
http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html
More information about the Python-list
mailing list