mtharrison / hackernews

A command line tool to print out the latest posts on Hacker News to your terminal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add flags for --ask --new --show and --limit=n

mtharrison opened this issue · comments

Nice work so far Matt. Any work on the flags yet? I would like to add a flag to handle printing out the HN post IN the terminal. I have a working prototype in my fork, but it does not use flags and simply replaced the open command. It would be cool if there was a flag for --text

Thanks TJ. I did start working on this and then discovered HN's RSS (which I'm currently using for this) only offers the Top posts. However there's a few unofficial APIs around (https://hn.algolia.com/api) that might be a better option.

Looks like there's now an official API: http://blog.ycombinator.com/hacker-news-api

I'll look into integrated with this when I get a chance.