gazpacho VS lxml

Compare gazpacho vs lxml and see what are their differences.

gazpacho

🥫 The simple, fast, and modern web scraping library (by maxhumber)

lxml

The lxml XML toolkit for Python (by lxml)
Our great sponsors
  • Activeloop.ai - Optimize your datasets for ML
  • Scout APM - A developer's best friend. Try free for 14-days
  • Nanos - Run Linux Software Faster and Safer than Linux with Unikernels
gazpacho lxml
1 7
599 1,955
- 1.3%
3.2 8.2
6 months ago 4 days ago
Python Python
MIT License BSD 3-clause "New" or "Revised" 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.

gazpacho

Posts with mentions or reviews of gazpacho. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-05-16.
  • Ask HN: What are some tools / libraries you built yourself?
    news.ycombinator.com | 2021-05-16
    I've been working on gazpacho [1] for last two years.

    It's a general purpose web scraping library for Python that replaces BeautifulSoup + requests for most projects.

    Just surpassed ~2K downloads every week!

    [1] https://github.com/maxhumber/gazpacho

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 2021-08-20.
  • How do i go about building a vidoe conferencing app?
    reddit.com/r/rust | 2021-08-20
    Generally, I'm already using Python to glue together things like OpenCV or libxml, which do the heavy-lifting, and taking advantage of how things like Qt's QImage release Python's Global Interpreter Lock, allowing me to load and process images on a background thread, so the Python code itself is usually already I/O-bound, but yes. If the Python code would become a bottleneck, it helps with that too.
  • Big brained meme I created
  • Catch some info with BeautifulSoup
    BeautifulSoup doesn't support XPath, no? They would need to use a library like lxml instead.
  • Where to start: Learning Web-scraping
    lxml is an XML parser however, it also supports HTML parsing. It's blazing fast and supports XPath. I think it isn't as beginner friendly to use, though it has detailed documentation. It works less well with heavily broken HTML documents and the encoding detection isn't as good as the one of BS4.
  • Python is better than C they said
    According to lxml benchmarking docs, Python’s built in xml parser wouldn’t behave that bad either: https://github.com/lxml/lxml/blob/master/doc/performance.txt
  • Want to try automating what I do majority of the time for my job using Python. Help me check what's possible and recommend the better way to achieve this task.
    *https://github.com/lxml/lxml *(works with beautifulsoup) as an internal parser

What are some alternatives?

When comparing gazpacho and lxml you can also consider the following projects:

xmltodict - Python module that makes working with XML feel like you are working with JSON

untangle - Converts XML to Python objects

html5lib - Standards-compliant library for parsing and serializing HTML documents and fragments in Python

pyquery - A jquery-like library for python

selectolax - Python binding to Modest and Lexbor engines (fast HTML5 parser with CSS selectors).

bleach - Bleach is an allowed-list-based HTML sanitizing library that escapes or strips markup and attributes

cssutils

xhtml2pdf - A library for converting HTML into PDFs using ReportLab

xmldataset - xmldataset: xml parsing made easy 🗃️

MarkupSafe - Safely add untrusted strings to HTML/XML markup.