html5lib-python
Standards-compliant library for parsing and serializing HTML documents and fragments in Python.