[Tutor] help with HTMLParseError

Kent Johnson kent37 at tds.net
Fri Feb 18 13:33:09 CET 2005

Peter Kim wrote:
> I'm using HTMLParser.py to parse XHTML and invalid tag is throwing an
> exception.  How do I handle this?

My understanding is that HTMLParser is not very forgiving of badly formed HTML. You might want to 
look at alternatives. Here are a few:
http://www.crummy.com/software/BeautifulSoup/ and see the links at the bottom of the page


More information about the Tutor mailing list