CLI for Hacker News
Hi HN! I've built hnterminal, a pip package that lets you browse, upvote, and comment on HN from terminal: $ pip install hnterminal $ hnterminal hnterminal is an interactive REPL environment with commands like "get_front_page", "get_tree", "upvote", "reply_to", etc, each of which supports rich arguments and comes with full help documentation. On the read side, hnterminal uses the HN API to construct front page and comment trees. On the write side, it reads the webpage and constructs an API response from parsed information. Unfortunately, a write API does not exist for HN (that I know of).…
What it does
In the maker’s words, at launch
Hi HN! I've built hnterminal, a pip package that lets you browse, upvote, and comment on HN from terminal: $ pip install hnterminal $ hnterminal hnterminal is an interactive REPL environment with commands like "get_front_page", "get_tree", "upvote", "reply_to", etc, each of which supports rich arguments and comes with full help documentation. On the read side, hnterminal uses the HN API to construct front page and comment trees. On the write side, it reads the webpage and constructs an API response from parsed information. Unfortunately, a write API does not exist for HN (that I know of). Login is accomplished with a login cookie that is only stored in memory as it runs. You don't need to login to browse HN, its only for upvotes and commenting.
Does the same job
all alternatives →- BUBrowse, upvote and comment on HN from command line2023 · github.com · ▲9
Hi HN! I've built hnterminal, a pip package that lets you browse, upvote, and comment on Hacker News from your terminal. To get started: $ pip install hnterminal $ hnterminal hnterminal is an interactive REPL environment with commands like "get_front_page", "get_tree", "upvote", "reply_to", etc, each of which supports rich arguments and comes with full help documentation. Checkout the readme.
- HBHNTerm – Browse Hacker News in the Terminal2019 · github.com · ▲139
- AHArchivy-HN – automatically save and download your upvoted HN posts2020 · github.com · ▲144
- HRHN Replies – Get notified of replies to your comments2016 · hnreplies.com · ▲217
- GLGet latest replies to an HN user2022 · github.com · ▲42
Hi HN, I hacked a simple service for gathering HN replies and organizing them by the parent's username. The main idea is to be able to efficiently get the latest replies to an HN user. For example, you can use this service to send yourself notifications when some replies to you on HN. The service queries the official HN API and can be self-hosted. It is basically ~30 lines of Bash script. I made this mostly for educational purposes -- thought you might find it useful for something. Cheers! Edit: for example, here are the latest replies to me [0]. It includes only recent replies, since I…
- HGHNNotify – Get emailed when a users reply to your HN Posts and Comments2018 · hnnotify.xyz · ▲66
More dev tools this month
the category →



Open-source GTM skills for technical founders
Dev tools · 29d ago · gtmcofounder.com

OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.
Dev tools · 1d ago · opentrailpaper.com

Launched alongside, March 2023
the whole month →




- BI
I'm a big fan of the BBC podcast In Our Time -- and (like most people) I've been playing with the OpenAI APIs. In Our Time has almost 1,000 episodes on everything from Cleopatra to the evolution of teeth to plasma physics, all still available, so it's my starting point to learn about most topics. But it's not well organised. So here are the episodes sorted by library code. It's fun to explore. Web scraping is usually pretty tedious, but I found that I could send the minimised HTML to GPT-3 and get (almost) perfect JSON back: the prompt includes the Typescript definition. At the same time I…
AI · 2023 · genmon.github.io