JustHTML – A pure Python HTML5 parser that just works
I got frustrated with HTML parsing in Python. I wanted a Python HTML parser that was both correct and easy to install. The C-based ones (lxml, selectolax) are fast but not HTML5 compliant. The pure Python ones (html.parser, BeautifulSoup's default) are easy to install but choke on real-world HTML. html5lib is 80% correct but painfully slow. So I wrote JustHTML. It's: • 100% HTML5 compliant – passes all 8,500+ html5lib tests. If a browser can parse it, JustHTML can. • Pure Python, zero dependencies – pip install and go. Works on PyPy, Pyodide, anywhere. • Fast enough – ~0.1s to parse…
What it does
In the maker’s words, at launch
I got frustrated with HTML parsing in Python. I wanted a Python HTML parser that was both correct and easy to install. The C-based ones (lxml, selectolax) are fast but not HTML5 compliant. The pure Python ones (html.parser, BeautifulSoup's default) are easy to install but choke on real-world HTML. html5lib is 80% correct but painfully slow. So I wrote JustHTML. It's: • 100% HTML5 compliant – passes all 8,500+ html5lib tests. If a browser can parse it, JustHTML can. • Pure Python, zero dependencies – pip install and go. Works on PyPy, Pyodide, anywhere. • Fast enough – ~0.1s to parse Wikipedia's homepage. Not C-fast, but 50% faster than html5lib. • Simple API – doc.query("div.foo > p") with CSS selectors. One method to learn. Example: from justhtml import JustHTML doc = JustHTML("<div><p class='intro'>Hello!</p></div>") print(doc.query(".intro")[0].to_html()) I've fuzz-tested it with 3 million malformed documents. Would love feedback, especially on the API design.
Does the same job
all alternatives →- FCFast C-based HTML 5 parsing for Python2017 · github.com · ▲169
- EAEel – a simple Python library for making little HTML GUI applications2018 · github.com · ▲201
- EAEno – A lightning fast, user-friendly YAML/TOML alternative2018 · ▲102
eno [1] - A modern plaintext language w/ libraries [2] for JavaScript, Python, Ruby & soon more! We migrated a big relational research database to a file-based solution - requirements were: - Super fast and easy editability for users - Highest performance for parsing/validating >10K documents on every user change. Our trials with YAML/TOML showed us that we wanted something both faster [3][4] and easier [4], something tailored for file-based content management ... and after months of research & development it's now publicly available (under MIT license) for everyone! Last but…
- HHHtmlPy – HTML5-CSS3-JavaScript Based GUI Library in Python2015 · amol-mandhane.github.io · ▲79
- PAPup – A command-line HTML parser2014 · github.com · ▲126
More dev tools this month
the category →



Open-source GTM skills for technical founders
Dev tools · 29d ago · gtmcofounder.com

OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.
Dev tools · 1d ago · opentrailpaper.com

Launched alongside, December 2025
the whole month →- GP
Life & fun · Dec 2025 · dosaygo-studio.github.io
- JG
Hi everyone! My name's Luke and I made the original Jmail here alongside Riley Walz. We had a ton of friends collaborate on building out more of the app suite last night in lieue of DOJ's "Epstein files" release. Please AMA!
Life & fun · Dec 2025 · jmail.world

PlanEat AI▲733AI turns your health goals into a 7-day menu & grocery list
AI · Dec 2025 · planeatai.com
- 2G
Community, All the HN belong to you. This is an archive of hacker news that fits in your browser. When I made HN Made of Primes I realized I could probably do this offline sqlite/wasm thing with the whole GBs of archive. The whole dataset. So I tried it, and this is it. Have Hacker News on your device. Go to this repo (https://github.com/DOSAYGO-STUDIO/HackerBook): you can download it. Big Query -> ETL -> npx serve docs - that's it. 20 years of HN arguments and beauty, can be yours forever. So they'll never die. Ever. It's the unkillable static archive of HN and it's…
Dev tools · Dec 2025 · hackerbook.dosaygo.com
