lxml
The lxml XML toolkit for Python (by lxml)
html5lib
Standards-compliant library for parsing and serializing HTML documents and fragments in Python (by html5lib)
lxml | html5lib | |
---|---|---|
19 | 5 | |
2,821 | 1,155 | |
1.3% | 0.0% | |
9.3 | 4.1 | |
6 days ago | about 1 year ago | |
Python | Python | |
BSD 3-clause "New" or "Revised" License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
lxml
Posts with mentions or reviews of lxml.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-10-25.
-
Release 0.44.0 of Spellcheck (GitHub) Action - baby-steps maintenance
lxml bumped from version 4.9.3 to 5.3.0, see release notes
-
Current problems and mistakes of web scraping in Python and tricks to solve them!
My journey in web scraping started in 2016 when I was solving lead generation challenges for a small company. Initially, I used off-the-shelf solutions such as Import.io and Kimono Labs. However, I quickly encountered limitations such as blocking, inaccurate data extraction, and performance issues. This led me to learn Python. Those were the glory days when requests and lxml/beautifulsoup were enough to extract data from most websites. And if you knew how to work with threads, you were already a respected expert :)
-
8 Most Popular Python HTML Web Scraping Packages with Benchmarks
lxml
- Looking for someone to web scrape housing data needed research. Will pay you for your work!!
-
13 ways to scrape any public data from any website
Parsel is a library build to extract data from XML/HTML documents with XPath and CSS selectors support, and could be combined with regular expressions. It's usees lxml parser under the hood by default.
-
lazy and fast .mpd file parser - for video streaming
So, now that I no longer work in that industry, and I had some free time, I created a lazy parsing package using lxml instead of the xml parser in the standard library, which can help people who want to have a python only parsing solution.
-
Guide to working with fancier XML documents with python?
Seriously, use LXML.
- There is framework for everything.
- how to find text in website ?
-
Parsing XML file deletes whitespace. How to avoid it?
I got curious about this now so I did some tests on my own, and it appears that the XML parser implementation in Python does indeed strip all newline characters from attributes. Whether this is according to XML standard I do not know; I also briefly tried an alternative XML implementation for Python and it behaves the same, so I would assume that this is standard behavior, but I'm not knowledgable enough about XML to say for certain.
html5lib
Posts with mentions or reviews of html5lib.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-03-21.
-
This Week In Python
html5lib-python – Standards-compliant library for parsing and serializing HTML documents and fragments in Python
- Show HN: Finic – open-source platform for building browser automations
-
Bleach 6.0.0 Release and Deprecation
Yes. This is really interesting.
Sounds like html5lib has been asking for funding, but doesn't look like there's much progress. https://github.com/html5lib/html5lib-python/issues/361
-
Pydantic Factories
Neither did html5lib.
-
Why are circular dependencies even a thing?
Easier example...sphinx is a document generator for python programs (creating docs for the API of programs from source-code comments for example). Spinx depends on html5lib which itself again depends on six...want to make a guess what six uses to generate its API docs? ;) So if you want the api docs of six you will have to first install it without to be able to get a working sphinx install then redo the six on including the building of the API docs.
What are some alternatives?
When comparing lxml and html5lib you can also consider the following projects:
xmltodict - Python module that makes working with XML feel like you are working with JSON
xhtml2pdf - A library for converting HTML into PDFs using ReportLab
selectolax - Python binding to Modest and Lexbor engines (fast HTML5 parser with CSS selectors).
pyquery - A jquery-like library for python
bleach - Bleach is an allowed-list-based HTML sanitizing library that escapes or strips markup and attributes