Providers & Prices

What is lxml? Facts and alternatives

lxml.de

lxml (lxml.de) is a Python XML and HTML toolkit with XPath and CSS selector support, built on libxml2.

Checked

Licence BSD-3-Clause · 3,079 GitHub stars, counted 26 Nov 2026 · last release lxml-6.1.3-1, 2 Sept 2026 · last code change 25 Nov 2026 · 20 alternatives in parsing and extraction · Guide: Python web scraping

Visit lxml.de ↗Code on GitHub ↗Alternatives ↓

What it is

ProductCategoryPriceRating
lxml: Python XML and HTML toolkit with XPath and CSS selector support, built on libxml2. Good for: Python developers parsing lots of HTML fast.Parsing and extraction 21Freeopen source62 4 facts

4 facts, each linked to its page. Category: tools we compare. Rating: our formula.

Data: JSON · CC BY 4.0

Facts

lxml.de · github.com/lxml/lxml

Spec facts 4 · 11 not listed yet
Where it runs 2
Can I host it myself?Yes
Code licenceBSD-3-Clause
Code 2
Written inPythonPython library; docs mention Cython
Latest releaseLxml 7.0.0a3, 2026-06-16

11 spec facts not listed on the company's pages yet. Seen one? Send us a source.

Who says what

What lxml says about itself

4 claims

Price 1
Main claimSource
lxml is free software under a BSD license, with libxml2 and libxslt under MIT.“The lxml library is shipped under a BSD license [l27] .”lxml.deChecked 16 Nov 2026
Speed 1
Main claimSource
lxml combines the speed and XML feature completeness of libxml2 and libxslt with a Python API compatible with ElementTree.“It is unique in that it combines the speed and XML feature completeness of these libraries with the simplicity of a native Python API”lxml.deChecked 16 Nov 2026
Coverage: sites, countries, IPs 1
Main claimSource
lxml has well over 250 million downloads per month on PyPI.“lxml has well over 250 million downloads [l60] per month on PyPI.”lxml.deChecked 16 Nov 2026
Features 1
Main claimSource
lxml is the most feature-rich and easy-to-use Python library for processing XML and HTML.“lxml is the most feature-rich and easy-to-use library for processing XML and HTML in the Python language.”lxml.deChecked 16 Nov 2026

What lxml says about others

0 claims about 0 companies

No claims by lxml about others yet.

What others say about lxml

12 claims by 7 companies

Speed 7 · Features 3 · Their own tests 2

Who: Octoparse 3 · Scrapfly 3 · Decodo 2 · Crawlbase 1 · Firecrawl 1 · ScrapingBee 1 · SerpApi 1

Speed 7
WhoMain claimSource
Crawlbaselxml uses libxml2 and libxslt to parse large HTML and XML documents faster than pure-Python parsers and supports XPath.“Built on the C libraries libxml2 and libxslt, it parses large HTML and XML documents much faster than a pure-Python parser”crawlbase.comChecked 16 Nov 2026 · Published 5 Jan 2026
Decodolxml is the faster parser option for BeautifulSoup.“For extra speed, you should choose lxml.”decodo.comChecked 16 Nov 2026 · Published 27 May 2021
FirecrawlLXML, at 2.8k stars, parses XML and HTML faster than Python's built-in tools through C libraries.“It provides better performance than Python's built-in XML tools while maintaining compatibility with the ElementTree interface.”firecrawl.devChecked 16 Nov 2026 · Published 24 Dec 2025
Octoparselxml is more powerful and parses large documents faster.“Additionally, it’s more powerful and faster in parsing large documents.”octoparse.comChecked 16 Nov 2026 · Published 29 May 2023
Scrapflylxml improves parsing speed and handles malformed markup, making it a safer choice for production scrapes.“lxml improves speed and handles malformed markup well, which makes it a safer choice for production scrapes.”scrapfly.ioChecked 16 Nov 2026 · Published 13 Dec 2025
ScrapingBeelxml parses in C and is the fastest Python parsing library.“Speed is exceptional because lxml parses in C, making it the fastest Python parsing library.”scrapingbee.comChecked 16 Nov 2026 · Published 3 Sept 2026
SerpApilxml is fast on large documents because it sits on C libraries, but is harder to learn than Beautiful Soup.“lxml is built on fast C libraries, so it handles large documents quickly.”serpapi.comChecked 16 Nov 2026 · Published 27 Oct 2026
Features 1
WhoMain claimSource
Decodolxml is a fast and reliable Python library for processing HTML and XML.“Ixml is a fast and reliable Py library that deals with HTML and XML processing.”decodo.comChecked 16 Nov 2026 · Published 27 May 2021

All 12 rows (4 more) →

These are the companies' own claims, each linked to its page. A company name opens both sides.

Alternatives

The closest tools from other companies, and how each differs on facts from their own pages. Not a ranking: the scrapenews rating lives in the compare tables.

Sorted by GitHub stars (counted 26 Nov 2026): that shows popularity, not quality. Tools without stars come last, A–Z.

ToolPriceHow it differs
Trafilatura: Python library and CLI to pull main text and metadata from web pages, with export to text, JSON, XML and more.FreeThey differ on 2 of 4 points we have facts for on both. Also different: licence, latest release.
selectolax: Fast HTML5 parser for Python with CSS selectors, using the Modest and Lexbor engines.FreeThey differ on 3 of 4 points we have facts for on both. Also different: licence, language, latest release.
Parsel: Library from the Scrapy team to extract data from HTML or XML with XPath or CSS selectors.FreeThey differ on 1 of 4 points we have facts for on both. Also different: latest release.

Sources

  1. lxml.de
  2. github.com/lxml/lxml

Checked: facts 16 Nov 2026, spec 16 Nov 2026.