talira

Compare

lxmlxmltodictBeautiful Soup
What it isXML and HTML processing for PythonWork with XML in Python as if it were JSON: parse it into dicts and backPython library for pulling data out of HTML and XML
KindOpen sourceOpen sourceOpen source
Trust0.660.470.37
Stars30795760—
Last commit2026-11-272026-08-19—
LicenceBSD-3-ClauseMITMIT
PricingFree and open sourceFree and open sourceFree and open source
Free tierYesYesYes
Self-hostable———
Ways to run it———
SOC 2———
HIPAA———
SSO———
API———
Plugins———
MCP server———
Companylxml dev teamMartin BlechLeonard Richardson
Features
  • ElementTree-compatible API
  • XPath and XSLT, with Python extension functions
  • validation with DTD, RelaxNG, XML Schema and Schematron
  • lxml.html for HTML parsing, links, forms and diffs
  • CSS selectors via lxml.cssselect
  • incremental and event-based parsing with iterparse
  • XML to nested dicts and back (parse and unparse)
  • streaming mode for large documents
  • namespace support
  • force_list and force_cdata for chosen elements
  • entity parsing off by default
  • Screen-scraping library for Python
  • Reads HTML, XML and SGML markup
  • Installed as beautifulsoup4 from PyPI
  • Packaged in Debian as python3-bs4