Create an index from a webpage

Thomas 'PointedEars' Lahn PointedEars at web.de
Thu Sep 8 08:38:53 EDT 2011


Simon Cropper wrote:

> I am after a way of pointing a python routine to my website and have it
> create a tree, represented as a hierarchical HTML list in a webpage, of
> all the pages in that website (recursive list of internal links to HTML
> documents; ignore images, etc.).
> 
> It is essentially a contents page or sitemap for the site.

<http://lmgtfy.com/?q=python+sitemap>

If all else fails, use markup parsers like 

- <http://www.crummy.com/software/BeautifulSoup/>
- <http://lxml.de/>

and write it yourself.  It is not hard to do.

-- 
PointedEars

Bitte keine Kopien per E-Mail. / Please do not Cc: me.



More information about the Python-list mailing list