library · inferred from evidence
html.parser
A built-in Python HTML parser available in the standard library, an alternative to html5lib for BeautifulSoup.
- bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html5lib
Fixes BeautifulSoup raising FeatureNotFound when you ask for the html5lib tree builder and it is not installed. Use when the traceback names the html5lib feature set. Not for the lxml variant (same shape, different package).
- ModuleNotFoundError: No module named 'html5lib'
Fixes the plain missing-module error for html5lib. Use when `import html5lib` fails with ModuleNotFoundError naming html5lib, often surfacing through a dependency like xhtml2pdf or BeautifulSoup. Not for the webencodings gap underneath it.