
lxml is a fast, feature-rich Python library for working with XML and HTML. It is widely used as a dependable parser beneath scraping, automation, and data workflows.
Key Features:
lxml package.Growing a website? Track its keywords, Google rankings, Search Console insights, and share of voice with bisibility. Free during beta.
Our productSource code
lxml/lxml
Stars
3.1KForks
657Last commit
2026-10-07License
BSD-3-ClauseLanguage
PythonMetrics recorded 2026-10-16
Last push: 2026-10-11
License source: Repository license file
lxml parses and manipulates XML and HTML in Python. Its ElementTree-compatible interface supports tree traversal and XPath, with additional APIs for HTML and XSLT. Select the appropriate parser and parser options for the input.
Sources (checked ): lxml tutorial
Install lxml through pip following the project’s platform guidance. A compatible binary wheel avoids a local source build. Building from source requires the documented compiler and libxml2/libxslt development dependencies.
Sources (checked ): lxml installation
No. lxml is installed separately from Python’s standard library. It provides an ElementTree-compatible API and additional XML/HTML features; standard-library examples and lxml examples are not always interchangeable.
Sources (checked ): lxml tutorial; lxml installation
Verified against the lxml/lxml repository and the PyPI package.
Library or tool · Library / Self-hosted
Library or tool · Library / Self-hosted
Library or tool · Library / Self-hosted