Re: HTML Table-of-Content Extraction Script
- From: Fredrik Lundh <fredrik@xxxxxxxxxxxxxx>
- Date: Tue, 28 Nov 2006 17:21:44 +0100
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>
.
- References:
- HTML Table-of-Content Extraction Script
- From: robert
- HTML Table-of-Content Extraction Script
- Prev by Date: Re: Problem with imaplib (weird result if mailbox contains a %)
- Next by Date: Error handling. Python embedded into a C++ app.
- Previous by thread: Re: HTML Table-of-Content Extraction Script
- Next by thread: SAX2 Download
- Index(es):
Relevant Pages
|