1 """ 2 HTML parsing library based on the WHATWG "HTML5" 3 specification. The parser is designed to be compatible with existing 4 HTML found in the wild and implements well-defined error recovery that 5 is largely compatible with modern desktop web browsers. 6 7 Example usage: 8 9 import html5lib 10 f = open("my_document.html") 11 tree = html5lib.parse(f) 12 """ 13 14 from __future__ import absolute_import, division, unicode_literals 15 16 from .html5parser import HTMLParser, parse, parseFragment 17 from .treebuilders import getTreeBuilder 18 from .treewalkers import getTreeWalker 19 from .serializer import serialize 20 21 __all__ = ["HTMLParser", "parse", "parseFragment", "getTreeBuilder", 22 "getTreeWalker", "serialize"] 23 24 # this has to be at the top level, see how setup.py parses this 25 __version__ = "0.9999999-dev" 26