Live data from Hacker News

Hacker News API

blog.ycombinator.com

251–260 of 315 posts

Re: Hacker News API

#252
I spent about 20 minutes throwing this together, so it's VERY rough, but maybe it will turn into something useful. I'm primarily a java programmer but I've been wanting to teach myself more ruby, so here it goes.

https://github.com/stevenspasbo/Hackernews

EDIT: I should say, I started on this to create word clouds, but if anyone has any ideas, contribute!

Re: Hacker News API

#253

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…

How about feeding the top 20 into Bingo Card Creator?

Re: Hacker News API

#254

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…

Thanks, I had been curious about that number for a while. The last time I checked it was 500k or so.

For folks who want to do interesting things with the API but don't want to be abusive to Firebase's servers, I whipped up a quick ruby script to cache a particular user's comments/submissions on disk: https://gist.github.com/patio11/1550cad3a02edd175049

It tries to rate limit itself by putting 200ms of sleep between requests, so downloading all of my comments would take ~30 minutes.

"I release this work unto the public domain." -- feel free to adapt it to your needs.

Usage is "ruby slurper.rb $USERNAME $MAX_COMMENTS_TO_FETCH."

Re: Hacker News API

#256
The Firebase JavaScript library makes make this impressively straightforward to use. I built a clone using React.js and Firebase's library. Because v0 of the API requires a request for each news story, it's not possible to use Firebase's React mixin yet.

https://github.com/ssorallen/hackernews-react

Re: Hacker News API

#257
post #50

I've been working on a Hacker News client for Windows Phone over the past several weeks and am very close to an initial release, so I feel somewhat ambivalent about this. On the one hand, of course it's great that HN is finally getting a proper API and also modernizing its markup (which is a mess even if you ignore all the tables – for example, the first paragraph in a comment usually isn't wrapped in tags), but on t…

See if this helps: http://filr.io/channel/hackernews/stream

queryparams: pageSize (no of items to return in one go) before (takes an epoch timestamp and returns results before that timestamp)

this is a stream of HN stories that have made it to the front page, in order of the time that they made it to the frontapge.

Re: Hacker News API

#259
post #50

I've been working on a Hacker News client for Windows Phone over the past several weeks and am very close to an initial release, so I feel somewhat ambivalent about this. On the one hand, of course it's great that HN is finally getting a proper API and also modernizing its markup (which is a mess even if you ignore all the tables – for example, the first paragraph in a comment usually isn't wrapped in tags), but on t…

Or use my Hacker News client for Windows Phone: http://www.windowsphone.com/en-us/store/app/hacker-news/a527...

Great you're here. I'm using this app, but I'm sorry to say this... It's pretty bad.

Here's a list of issues that I encounter very often:

- It often crashes during startup

- There are massive encoding issues, I see question mark symbols pretty often.

- Comments often won't load, without any error message whatsoever.

I uninstalled the app multiple times for these reasons, but unfortunately there isn't anything that's better.

Re: Hacker News API

#260
post #169
post #159

Earlier quoted context omitted.

Well unfortunately there's no Firebase SDK for Windows Phone/C#/WinRT, and the WebSocket API is undocumented. EDIT: After having played with the JS SDK a bit I'd like to add that it is indeed incredibly awesome.

[Firebase founder] There is a Firebase C# SDK on the way. We've had some other things, that we've been working on for the last year, that are shipping in the next few weeks which have taken priority. After that, we'll be shifting focus to new SDKs (they're a little complicated and take a bit of time to build)

"C# SDK" doesn't say much. SilverLight can use C#, WinRT can use C#, .NET can use C#, but that doesn't mean your "C# library" will run everywhere. C# is just the syntax.
Post reply on HN