HTML Table-of-Content Extraction Script

tleeuwenburg at gmail.com tleeuwenburg at gmail.com
Tue Nov 28 21:55:38 EST 2006


Fredrik Lundh wrote:
> robert wrote:
>
> > I'm looking for a function which extracts a table of contents
>  > of HTML file(s) from <Hx....><a name=...></a>...</Hx>
>  > and possibly auto-creates the ancors.
> > Maybe something already exists?
>
> that's the kind of stuff you'll write in approximately two minutes using
> BeautifulSoup (or if you prefer the ElementTree API, ElementSoup).
>
> start here:
>
>      http://www.crummy.com/software/BeautifulSoup/
> 
> </F>

splity does that, but it's not Python.

Cheers,
-T




More information about the Python-list mailing list