mtharrison / hackernews

A command line tool to print out the latest posts on Hacker News to your terminal.
50 stars 8 forks source link

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

Closed mtharrison closed 4 years ago

tjlav5 commented 10 years ago

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

mtharrison commented 10 years ago

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.

mtharrison commented 10 years ago

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.