Live data from Hacker News

Hacker News API

blog.ycombinator.com

211–220 of 315 posts

Re: Hacker News API

#211

Earlier quoted context omitted.

In February, I did an analysis on all Hacker News stories: http://minimaxir.com/2014/02/hacking-hacker-news/ Yesterday, I published an analysis on all Hacker News comments: http://minimaxir.com/2014/10/hn-comments-about-comments/ There's a lot of interesting trends in the data. Let me know if you want to know anything in particular and I'll get back to you. :)

I would be interested to know the average hourly cost of HN in lost productivity :)

40 wpm x total words x (hmm need to look up productivity stats) - but we could do it :-)

Re: Hacker News API

#212

I added upvoting stories and comments feature to my ios/android app few weeks ago. And thinking about adding commenting. http://hn.premii.com/about Now I will have to remove that. Please keep current version of the YC site on a different subdomain.

I use your app, it's awesome! Also agree with your request, as I said elsewhere in this thread...

By the way, animations (the slide between list and comments) have been jerky since a recent update. I'm using the Android app on an HTC One M7 with the latest stock ROM (4.4.3 and Sense 6.0). A few other people have mentioned this in Play Store reviews. Is this a known issue?

Re: Hacker News API

#213

Earlier quoted context omitted.

I would be interested to know the average hourly cost of HN in lost productivity :)

I'd like to know the average hourly amount earned from HN. I know personally HN has helped me greatly in the projects I do at work.

Yes this is an interesting question too, but one that is much harder to answer. I love HN, but it sure gets a lot of activity during work hours :)

Re: Hacker News API

#214

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…

In February, I did an analysis on all Hacker News stories: http://minimaxir.com/2014/02/hacking-hacker-news/ Yesterday, I published an analysis on all Hacker News comments: http://minimaxir.com/2014/10/hn-comments-about-comments/ There's a lot of interesting trends in the data. Let me know if you want to know anything in particular and I'll get back to you. :)

That's some pretty impressive analysis, nice visualizations too. Thank you for doing all that hard work!

Re: Hacker News API

#215
post #52

Earlier quoted context omitted.

Yes. While with HTTP pipelining you can request them all over a single TCP connection using a single SSL session, you will need to make an HTTP request for each item you want. If you're on a supported platform, the Firebase SDKs handle all this efficiently and can even provide real-time change notifications.

[Firebase Employee] If you use the SDKs, we handle the connection and all of the data is sent over a reused full duplex socket rather than individual requests. https://www.firebase.com/docs/android/ , https://www.firebase.com/docs/ios/ , https://www.firebase.com/docs/web/

I'm trying to attach a ChildEventListener to the "item" Firebase and I'm getting a "permission denied" error. My guess is that I am doing something wrong, but on the off chance that the adding event listeners is not (yet) enabled, it would be nice to know. Any clues to what I might be doing wrong?

I've never used the Firebase API itself before. It's very clean!

Edit: I reached the same (now obvious) conclusion as mentioned in the reply below. Now my quick hack is working perfectly. Thank you so much for this!

Re: Hacker News API

#216

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…

In February, I did an analysis on all Hacker News stories: http://minimaxir.com/2014/02/hacking-hacker-news/ Yesterday, I published an analysis on all Hacker News comments: http://minimaxir.com/2014/10/hn-comments-about-comments/ There's a lot of interesting trends in the data. Let me know if you want to know anything in particular and I'll get back to you. :)

It would be interesting to redo the top karma list by comment karma only. It would also be interesting to look at liberal vs conservative political sentiment over time. I feel like the site has gotten more liberal over the years, especially after all the Chelsea Manning stuff, but not sure if that is accurate.

Re: Hacker News API

#217
post #73

Earlier quoted context omitted.

just wanted to let you know that I love your application!

Thanks! I think you'll like the new version whenever it gets finished :)

It's OT but i couldn't resist! Could you also please add some Material Design Love ? Thanks for making this awesome app opensource.

Cheers

Re: Hacker News API

#218

Earlier quoted context omitted.

In February, I did an analysis on all Hacker News stories: http://minimaxir.com/2014/02/hacking-hacker-news/ Yesterday, I published an analysis on all Hacker News comments: http://minimaxir.com/2014/10/hn-comments-about-comments/ There's a lot of interesting trends in the data. Let me know if you want to know anything in particular and I'll get back to you. :)

It would be interesting to redo the top karma list by comment karma only. It would also be interesting to look at liberal vs conservative political sentiment over time. I feel like the site has gotten more liberal over the years, especially after all the Chelsea Manning stuff, but not sure if that is accurate.

I actually have the list of top users by comment karma: https://docs.google.com/spreadsheets/d/1Ws2VK-UB7IQpVUZgPZ9M...

I also included the number of thread wins (user made comment with highest number of points in a given submission thread) to see if there was any unusual relationship. There wasn't: correlation is 0.89. I ended up not including it in the article because it's long enough as-is. :P

Re: Hacker News API

#219
post #215

Earlier quoted context omitted.

[Firebase Employee] If you use the SDKs, we handle the connection and all of the data is sent over a reused full duplex socket rather than individual requests. https://www.firebase.com/docs/android/ , https://www.firebase.com/docs/ios/ , https://www.firebase.com/docs/web/

I'm trying to attach a ChildEventListener to the "item" Firebase and I'm getting a "permission denied" error. My guess is that I am doing something wrong, but on the off chance that the adding event listeners is not (yet) enabled, it would be nice to know. Any clues to what I might be doing wrong? I've never used the Firebase API itself before. It's very clean! Edit: I reached the same (now obvious) conclusion as men…

[Firebase Dev Advocate] Glad you're enjoying Firebase! Attaching a listener to the "items" Firebase is disabled. This is because it would send every item from HN to your computer. You'll need to attach a listener to the individual item instead. The "permission denied" error is coming from the security rules on the HN Firebase (https://www.firebase.com/docs/security/quickstart.html). If you're trying to find out what the latest updates are, they're kept in the /updates node (https://github.com/HackerNews/API#changed-items-and-profiles).

Re: Hacker News API

#220
Great news! Will require a fair bit of retooling, but, ya know -- omelets, eggs, etc!

I see the topstories query to replace scraping /news: https://hacker-news.firebaseio.com/v0/topstories.json?print=...

And there must be a query to get the newest items instead of the current /newest.

Are there also new equivalents for /active, /best, /classic, /show, and /shownew?

I'll be happy to replace dodgy XPATH parsing with a proper API. Hope we won't lose these other views though!

Post reply on HN