Skip to main content

HTML parser based on the WHAT-WG Web Applications 1.0(

Project description

HTML parser designed to follow the WHATWG HTML5 specification. The parser is designed to handle all flavours of HTML and parses invalid documents using well-defined error handling rules compatible with the behaviour of major desktop web browsers.

Output is to a tree structure; the current release supports output to ElementTree (including cElementTree and lxml.etree), minidom, and a custom simpletree format.

html5lib also includes a HTML sanitizer, “treewalkers” for converting various tree formats into streams and filters and serializers to operate on those streams.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
html5lib-0.10.tar.gz (145.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page