HTML Table-of-Content Extraction Script

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • robert

    #1

    HTML Table-of-Content Extraction Script

    I'm looking for a function which extracts a table of contents of HTML file(s) from <Hx....><a name=...></a>...</Hxand possibly auto-creates the ancors.
    Maybe something already exists?


    Robert
  • Thomas Guettler

    #2
    Re: HTML Table-of-Content Extraction Script

    robert wrote:
    I'm looking for a function which extracts a table of contents of HTML file(s) from <Hx....><a name=...></a>...</Hxand possibly auto-creates the ancors.
    Maybe something already exists?
    You can try mine:


    --
    Thomas Güttler, http://www.thomas-guettler.de/ http://www.tbz-pariv.de/
    E-Mail: guettli (*) thomas-guettler + de
    Spam Catcher: niemand.leerman n@thomas-guettler.de

    Comment

    • Fredrik Lundh

      #3
      Re: HTML Table-of-Content Extraction Script

      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:



      </F>

      Comment

      • tleeuwenburg@gmail.com

        #4
        Re: HTML Table-of-Content Extraction Script


        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:
        >

        >
        </F>
        splity does that, but it's not Python.

        Cheers,
        -T

        Comment

        Working...