Skip to content

stym06/hackernews-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HackerNews Random

Go License GitHub last commit GitHub issues GitHub forks GitHub stars Language

This Go script fetches the top stories from Hacker News, selects a random story, and opens Chrome with the url

Prerequisites

  • Go 1.16 or later

Quickstart

git clone github.com/stym06/hackernews-bot.git && cd hackernews-bot
make build
source ~/.zshrc

Usage

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