gazpacho
selectolax
Our great sponsors
gazpacho | selectolax | |
---|---|---|
1 | 4 | |
694 | 729 | |
- | - | |
0.0 | 6.9 | |
almost 2 years ago | about 1 month ago | |
Python | Cython | |
MIT License | MIT License |
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
-
Ask HN: What are some tools / libraries you built yourself?
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!
selectolax
-
The State of Web Scraping in 2021
Lazyweb link: https://github.com/rushter/selectolax
although I don't follow the need to have what appears to be two completely separate HTML parsing C libraries as dependencies; seeing this in the readme for Modest gives me the shivers because lxml has _seen some shit_
> Modest is a fast HTML renderer implemented as a pure C99 library with no outside dependencies.
although its other dep seems much more cognizant about the HTML5 standard, for whatever that's worth: https://github.com/lexbor/lexbor#lexbor
---
> It looks like the author of the article just googled some libraries for each language and didn't research the topic
Heh, oh, new to the Internet, are you? :-D
What are some alternatives?
lxml - The lxml XML toolkit for Python
pyquery - A jquery-like library for python
lexbor - Lexbor is development of an open source HTML Renderer library. http://lexbor.com
html5lib - Standards-compliant library for parsing and serializing HTML documents and fragments in Python
bleach - Bleach is an allowed-list-based HTML sanitizing library that escapes or strips markup and attributes
xmltodict - Python module that makes working with XML feel like you are working with JSON
pyppeteer - Headless chrome/chromium automation library (unofficial port of puppeteer)
xmldataset - xmldataset: xml parsing made easy 🗃️
xhtml2pdf - A library for converting HTML into PDFs using ReportLab