Popular recipes tagged "htmlparser" but not "urllib2"http://code.activestate.com/recipes/tags/htmlparser-urllib2/2013-12-14T00:28:36-08:00ActiveState Code RecipesPretty and Stated HTMLParsers (Python)
2013-12-14T00:28:36-08:00Ádám Szieberthhttp://code.activestate.com/recipes/users/4188745/http://code.activestate.com/recipes/578787-pretty-and-stated-htmlparsers/
<p style="color: grey">
Python
recipe 578787
by <a href="/recipes/users/4188745/">Ádám Szieberth</a>
(<a href="/recipes/tags/html/">html</a>, <a href="/recipes/tags/htmlparser/">htmlparser</a>, <a href="/recipes/tags/state/">state</a>).
Revision 2.
</p>
<p>Extensions of html.parser.HTMLParser().</p>
<p>PrettyHTMLParser() does not splits data into chuncks by HTML entities.
StatedHTMLParser() can have many state-dependent handlers which helps parsing HTML pages alot.</p>