HTML Parsing

Fredrik Lundh fredrik at pythonware.com
Sun Feb 11 09:17:37 EST 2007


John Machin wrote:

> One can even use ElementTree, if the HTML is well-formed. See below.
> However if it is as ill-formed as the sample (4th "td" element not
> closed; I've omitted it below), then the OP would be better off
> sticking with Beautiful Soup :-)

or get the best of both worlds:

    http://effbot.org/zone/element-soup.htm

</F> 






More information about the Python-list mailing list