aborruso/scrape-cli
Extract HTML elements from the command line using CSS selectors or XPath. Pipe-friendly Python CLI.
This tool helps developers and data engineers quickly pull specific information from HTML content, such as web pages. You feed it HTML, either from a file or directly piped from a web request, along with a CSS selector or XPath query. It then returns the matching HTML elements or their plain text content, which can be further processed or converted to JSON.
Available on PyPI.
Use this if you need to extract structured data or text snippets from HTML documents using command-line tools and prefer working with standard selectors.
Not ideal if you need a full-fledged web crawling framework that manages sessions, handles JavaScript rendering, or requires complex interaction with web forms.
Stars
25
Forks
1
Language
HTML
License
—
Category
Last pushed
Feb 22, 2026
Commits (30d)
0
Dependencies
3
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/perception/aborruso/scrape-cli"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
scrapy/scrapy
Scrapy, a fast high-level web crawling & scraping framework for Python.
Altimis/Scweet
A simple and unlimited twitter scraper : scrape tweets, likes, retweets, following, followers,...
lexiforest/curl_cffi
Python binding for curl-impersonate fork via cffi. A http client that can impersonate browser...
plabayo/rama
modular service framework to move and transform network packets
scrapinghub/spidermon
Scrapy Extension for monitoring spiders execution.