Show HN: HNTerm – Browse Hacker News in the Terminal
github.com
github.com
// And screenshot
I love the concept, and would use it daily if there were features for adding/removing/viewing favorites. This is something that the official API doesn't support, so it's not something I'm faulting this application for. Impressive for sure.
Also +1 on wlqlwlql's dark-mode idea, although a color theme in general might be a better approach (but perhaps overly complicated?).
Regarding color themes - these are super easy to add.
Would love it for PH too
The auth string of a story for "fave" is the same as the auth string for the "hide" and "flag" links (since they are already present, the links' hrefs contain that auth string), and so we can extract the auth string from their hrefs and use it for favoriting and un-favoriting.
Moreover, I've created a simple API which can be used to get all the favorited items of a user: https://github.com/plibither8/hn-faves-api
If that were the case I'd be worried about hitting an API limit, etc.
Great concept though! Looks clean =)
I was wondering what is the API limit - I haven't hit it yet. Will see.
Super cool project!
In the meantime, if you scrape the HTML, please respect https://news.ycombinator.com/robots.txt and don't do it more than once per 30 seconds. HN's app server runs on a single core, so we don't have a lot of performance to spare! This is in the works to change as well.
That's interesting. Is there any more information about HN's tech stack? I know it's built on top of the Lisp dialect Arc, but I wonder about the server specs and would be happy to be pointed at some resource.
Although I experienced HN being down, I guess the overall uptime and availability is pretty decent. Keep up the good work!
Number of requests is closer to 5M per day now.
If your dayjob doesn't allow you to spend 1 hour a day keeping up on tech news/interests, then maybe you need a better job.