Pi

Pipet – CLI tool for scraping and extracting data online, with pipes

Hacker News

Pipet – CLI tool for scraping and extracting data online, with pipes

I often find myself in situations where I need to extract some data from a website, either as one time thing or periodically (and then watch for changes). Maybe I'm tracking stocks, or a delivery, or I want to know when tickets become available to the local sauna; maybe a friend called and asked "can you get me all data from that website into a spreadsheet?" (this happens surprisingly often) I used to write one-off scripts for that, often with Python or JavaScript, but I noticed I spend about one minute getting the right CSS selectors, and then another 10 minutes setting the rest of the script up. I decided to write Pipet so that I'll never need to write any of the boilerplate code again. By now I probably spent more time writing Pipet than all scrapers I have ever written, but hey, it's been fun… Pipet has two modes: curl and playwright. With curl, you can either type "curl http://news.ycombinator.com " or just copy-paste the request you want to duplicate from the browser. Pipet runs curl just like your shell does, so all headers and preferences work just the same. I found that this was super useful when trying to emulate a real browser or accessing something behind a login. With playwright mode, you just use JavaScript. If it worked in the devtools console, it should work with Pipet too. Some other features I think are useful is that you can output the results as text, JSON, or write a template file for the results to be rendered into. You can also run Pipet with an interval, and run a command when the data changes. Lastly, Pipet fully integrates UNIX pipes, so you can do stuff like `div#main h1 | wc -c` and it will take the h1 from a div with id “main”, and pipe its HTML to `wc -c`. It makes it extremely easily to just use tools you already know to process the data before Pipet outputs it. It also works when processing JSON - you can call jq or whatever you like to use to help with the processing. I’ve noticed I have written so many little scrapers since I have Pipet around because it became such an easy task, so hopefully others will find it useful too!

Share card

Actual performance

49points
7comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
94%94% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: new, code · Missing: mac, agents, macos
76%76% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide, pipe, io · Missing: https docs, excited, just released
73%73% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
38%38% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
30%30% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
11%11% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

CL
CLI tool to find and configure RaspberryPis over the LAN45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CLI tool to find and configure RaspberryPis over the LAN

Hacker News5
Wd
Wd, CLI tool for WebDriver39%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Wd, CLI tool for WebDriver

Hacker News1
Du
Dutyme – CLI tool to assign PagerDuty on-call to you while operation28%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Dutyme – CLI tool to assign PagerDuty on-call to you while operation

Hacker News3
CL
CLI Tool for BigQuery Migrations30%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CLI Tool for BigQuery Migrations

Hacker News1
Gi
Gig – CLI Tool for .gitignores54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Gig – CLI Tool for .gitignores

Hacker News2
Fi
Findlike – TF-IDF as a CLI Tool39%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Findlike – TF-IDF as a CLI Tool

Hacker News2
As
AskOpenAI – CLI Tool37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AskOpenAI – CLI Tool

Hacker News4
Ws
Ws – A simple WebSocket cli tool50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Ws – A simple WebSocket cli tool

Hacker News5
Ja
Java CLI Tool Built with GraalVM33%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Java CLI Tool Built with GraalVM

Hacker News1
Ja
Java CLI Tool Built with GraalVM33%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Java CLI Tool Built with GraalVM

Hacker News3