Noob trying to parse bad HTML using xml.etree.ElementTree

Chris Angelico rosuav at
Sun Dec 30 11:07:39 CET 2012

On Sun, Dec 30, 2012 at 8:52 PM, Morten Guldager
<morten.guldager at> wrote:
> Question is if it's possible to tweak xml.etree.ElementTree to accept, and
> understand sloppy html, or if you have suggestions for similar easy to use
> framework, preferably among the included batteries?

Check out BeautifulSoup, it's fairly good at dealing with messy input.


More information about the Python-list mailing list