html-toc html-toc is a simple tool based on the builtin html.parser module to generate table of content from HTML. See test.py for usage.