This Go script fetches the top stories from Hacker News, selects a random story, and opens Chrome with the url
- Go 1.16 or later
git clone github.com/stym06/hackernews-bot.git && cd hackernews-bot
make build
source ~/.zshrc
When you run hn
command now, it will open up Chrome with a random story from HackerNews
> hn show
Tripping on Xenon Gas (2023)
https://tripsitter.substack.com/p/xenon