Get a filename list of a web site

faulkner faulkner891 at gmail.com
Tue Jul 10 08:21:25 EDT 2007


On Jul 10, 5:12 am, aidech... at yahoo.it wrote:
> Hi all,
> is it possible to get a filename directory list of a website (possibly
> with full path indication)?
> Using python & possibly wget?
>
> Bye.

HTTP does not provide a command for this.
you need to acquire a shell account on the specific server you're
interested in. generally, this requires emailing the addresses in the
whois database, explaining why you need a shell account. generally,
they will deny your request.
then you can say `ssh YOURNAME at SERVER ls DIRECTORY`.
a few directories on a few servers are configured such that they list
themselves when queried. iirc, there's a google trick to let you find
these directories.




More information about the Python-list mailing list