4 ms·
It's a shame favorites aren't exposed in the official HN API: https://github.com/HackerNews/API https://github.com/HackerNews/API - this is a smart workaround.
by simonw 7y ago
It's a shame favorites aren't exposed in the official HN API: https://github.com/HackerNews/API https://github.com/HackerNews/API - this is a smart workaround.
- dang 7y agoOur plan is for the next version of HN's API to simply serve a JSON version of every page. I'm hoping to get to that this year.
- death-by-ppt 7y agoHi Dan, That's great news! Is there a way to be notified (eg, via email) when this comes out? Thanks.
- dang 7y agoIf you (or anyone) want to be on an alpha-tester list, email hn@ycombinator.com and we can add you. Send a username and make sure it has the email address you want to be notified at.
- simonw 7y agoThat would be amazing! I've been having some fun with the API recently building this tool: https://github.com/dogsheep/hacker-news-to-sqlite https://github.com/dogsheep/hacker-news-to-sqlite
- bhl 7y agoAre there plans for an export tool, e.g. a user downloading all their comments and upvoted submissions? I tend to use the submission upvote button more than the favorite one, and an export tool wouldn't require a user API key for non-private info.
- gitgud 7y agoWow, that would make it really easy to implement an alternative HN client. Related Question: Is this the source code for HN? https://github.com/wting/hackernews https://github.com/wting/hackernews
- dang 7y agoThat page says the code is copied from http://arclanguage.org/install http://arclanguage.org/install, which is indeed an old version of the HN source code. It has changed a lot over the years though.
- amjd 7y agoThat's great! Is there any plan of exposing authenticated content through the API too? Mainly talking about upvoted stories.
- gabrielsroka 7y agoThanks Simon. I'd originally written this script to export my DVD ratings from Netflix, since there's no API for that either. It was easy to adapt it to HN. I wanted to show people that it's possible (and easy) to get to your own data!