HTML/DOM parser

Xah Lee xah at xahlee.org
Tue Feb 28 03:33:11 EST 2006


is there a module that lets me parse validated html files and store it
as a tree?

for example, i want to be able to easily, say, replace the following

<hr><p>References</p>
<pre>
• <a href=a>a...</a>
...
</pre>

to

<hr><p>References</p>
<ul>
<li><a href=a>a...</a></li>
...
</ul>

Thanks.

   Xah
   xah at xahlee.orghttp://xahlee.org/




More information about the Python-list mailing list