# html5lib — card for AI agents

HTML parser based on WHATWG specification for parsing and processing HTML.

Category: Scraping, browsers and parsing · PyPI package `html5lib` · latest version 1.1 (checked 2026-11-01)
Install: `pip install html5lib`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 56.8 (#1183 of all tools, 37 of 140 in its category)
- Used in 8 public projects set up for AI coding agents (0.1%)
- Downloads last week: 6,989,151 (as of 2026-11-17), +15.1% over 4 weeks
- GitHub stars: 1,221 (as of 2026-11-17)
- Last push: 2026-04-21

## Often used with
Beautiful Soup 94.1%, lxml 92.8%, NumPy 92.0%, Click 89.0%, Jinja2 88.6%, MarkupSafe 87.3%

## Checked alternatives (same job)
- Beautiful Soup: https://agentgid.com/tools/beautifulsoup4/agent.md
- lxml: https://agentgid.com/tools/lxml/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/html5lib/
- Homepage: https://github.com/html5lib/html5lib-python
- Repository: https://github.com/html5lib/html5lib-python

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
