EmilStenstrom/justhtml
A pure Python HTML5 parser that just works. No C extensions to compile. No system dependencies to install. No complex API to learn. observed · 2026-08-28
Health v2 · maintenance only
83/100
- Activity 98
- Release rhythm 86
- Longevity 44
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 1.0
- age_days: 620
- days_rel: 17
- days_push: 17
- n_releases_24m: 87
Adoption not part of the score
1151 stars · 44 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
JustHTML is a pure Python HTML5 parser with browser-style error recovery, safe-by-default sanitization, CSS selector querying, and serialization to HTML, text, or Markdown. It has zero runtime dependencies and no C extensions, making it easy to deploy anywhere Python runs.
Use cases
- sanitize untrusted user-supplied HTML
- parse malformed HTML like a browser
- extract text or markdown from HTML
- query HTML with CSS selectors in Python
- replace Bleach or html5lib in a Python project
- scrape messy real-world web pages
- convert HTML to markdown
When to choose
- you need correct HTML5 parsing of untrusted or malformed HTML in Python
- you want sanitization built in rather than a separate library
- you need zero-dependency deployment, including PyPy or Pyodide
- you're migrating from Bleach or html5lib
When to avoid
- you need maximum throughput parsing of terabytes of trusted HTML - use a C/Rust-backed parser like lxml
- you need a non-Python language
Facets
library · maturity active
parser security web-scraping serialization parsers web-development security developer-tools python cross-platform cli html5-parsing html-sanitization css-selectors pure-python markdown-conversion bleach-replacement dom-manipulation
3 sources
- readme: https://github.com/EmilStenstrom/justhtml · fetched 2026-08-28 · c2223cae1b8f
- homepage: https://emilstenstrom.github.io/justhtml/ · fetched 2026-08-29 · d2f2bdf4f33e
- registry_pypi: https://pypi.org/pypi/justhtml/json · fetched 2026-08-29 · 50605f3d4ece
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| EmilStenstrom/justhtml | main | 83 |
For agents
markdown · JSON · MCP: product_card(name="EmilStenstrom/justhtml")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem