News for hackers. Stuff that matters.
Re:Show HN: Export HN Favorites to a CSV File by dang on Sunday April 05, 2020 @04:41PM (#22788526)
Our 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.
Re:Show HN: Export HN Favorites to a CSV File by simonw on Sunday April 05, 2020 @04:48PM (#22788585)
That would be amazing!

I've been having some fun with the API recently building this tool: https://github.com/dogsheep/hacker-news-to-sqlite

Re:Show HN: Export HN Favorites to a CSV File by gitgud on Sunday April 05, 2020 @08:01PM (#22789789)
Wow, 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

Re:Show HN: Export HN Favorites to a CSV File by dang on Sunday April 05, 2020 @09:01PM (#22790092)
That page says the code is copied from http://arclanguage.org/install, which is indeed an old version of the HN source code. It has changed a lot over the years though.
Re:Show HN: Export HN Favorites to a CSV File by saagarjha on Monday April 06, 2020 @01:37AM (#22791148)
Any chance of some newer code being released, or the addition of a place to submit patches?
Re:Show HN: Export HN Favorites to a CSV File by dang on Monday April 06, 2020 @02:01AM (#22791221)
I'd love to do that someday. But it would be a lot of work.
Re:Show HN: Export HN Favorites to a CSV File by bhl on Sunday April 05, 2020 @06:11PM (#22789172)
Are 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.
Re:Show HN: Export HN Favorites to a CSV File by simonw on Monday April 06, 2020 @02:23AM (#22791308)
My tool here can export all of a user's comments: https://github.com/dogsheep/hacker-news-to-sqlite

Not upvoted yet as they aren't in the API I am using.

Re:Show HN: Export HN Favorites to a CSV File by dang on Monday April 06, 2020 @02:02AM (#22791224)
That should be an easy extension of the JSON API once we have it.
Re:Show HN: Export HN Favorites to a CSV File by death-by-ppt on Sunday April 05, 2020 @04:46PM (#22788575)
Hi Dan,

That's great news! Is there a way to be notified (eg, via email) when this comes out?

Thanks.

Re:Show HN: Export HN Favorites to a CSV File by dang on Sunday April 05, 2020 @04:57PM (#22788678)
If you (or anyone) want to be on an alpha-tester list, email [email protected] and we can add you. Send a username and make sure it has the email address you want to be notified at.
Re:Show HN: Export HN Favorites to a CSV File by amjd on Monday April 06, 2020 @12:47AM (#22790972)
That's great! Is there any plan of exposing authenticated content through the API too? Mainly talking about upvoted stories.