Live data from Hacker News

Hacker News API

blog.ycombinator.com

241–250 of 315 posts

Re: Hacker News API

#244

Oh man you guys, patio11 has generated massive amounts of content: https://hacker-news.firebaseio.com/v0/user/patio11.json?prin... I count 8,483 submissions. I'm sure there's something interesting to be done with all of this data. A word frequency chart? --- Edit: So apparently there's a ruby gem that lets you feed it a body of text and generates pseudo-random phrases based on that text. I present to you the patio11…

It checks out, I put in TempleOS and got out Genesis: "We have dreamed a dream, and there is no interpreter of it."

Re: Hacker News API

#245

Decided to recreate the Hacker News homepage using Ember and the new API. I was really pleased with how easy it was! https://realtimehackernews.firebaseapp.com/

Very cool. Would be neat if changes were more pronounced when they happen. Will the posts change order in this demo if they change on the homepage?

Sadly no, but I'm looking into how to make that happen! It's a result of my particular implementation, not a fault of the API.

Re: Hacker News API

#247
post #222

Earlier quoted context omitted.

There's a cheat to work around that limit: use the created_at_i parameter. Example: https://github.com/minimaxir/hacker-news-download-all-storie...

I don't know Python, so I'm not sure what your source code is doing. At a guess, you've hacked together some sort of repeated queries thing with a time-window?

> Get 1000 entries and process them. > Take the timestamp of the last entry. > Requery the API, asking for articles made before that timestamp

Repeat.

Re: Hacker News API

#248
post #163

Earlier quoted context omitted.

I'm also curious whether it removes some of the limitations of the Algolia version; I wanted to download my content for some statistical analysis (notes at http://www.gwern.net/HN ) but I discovered that it seems there's some hard limits to how much of my data I can reach: https://github.com/algolia/hn-search/pull/36

There's a cheat to work around that limit: use the created_at_i parameter. Example: https://github.com/minimaxir/hacker-news-download-all-storie...

If you want to get data for a single user through Algolia's API via the commandline, you could also use https://github.com/jaredsohn/hnuserdownload. It uses the same technique as minimaxir's code (a post of his was the inspiration.)

Re: Hacker News API

#249
Please do allow other sites to use HN logins. Then the community could develop useful sister services.

For example, a site where HN members can upvote and rate different development tools, libraries, IDEs, management tools, etc. All with backlinks to HN discussions. It's a great community and there are many ways we could share knowledge and experience.

Post reply on HN