Can I 'LOOK' through urllib?

Grant Edwards grante at
Wed Feb 11 19:28:56 EST 2009

On 2009-02-11, Muddy Coder <cosmo_general at> wrote:
> Hi Folks,
> I feel good after played urllib with fun!
> 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, but I don't
> know what the filenames are residing in the data_folder.

Try a GET on  If the admin has
indexing enabled, you should get something like "ls" output.

If not, you're out of luck.

> I wish urllib would have a function to let me do it, as well
> as I do 'dir' in DOS, 'ls' on unix/linux.

I wish I was 20 years younger and ten times as rich as I am.

> Somebody write me a demo?

Somebody send me a time machine and a pile of cash?

On second thought, don't bother with the cash -- with a time
machine, I can generate my own pile of cash.


More information about the Python-list mailing list