Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
newtab
A clean new tab page extension for Chrome made by Isaac Bythewood, you can grab it and customize it yourself. (by overshard)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I wrote a script that will allow you to use cookies to download your comment scores [1]. I also did some analysis of my own scores [2]
[1] https://github.com/superb-owl/hacker-news-comments
[2] https://superbowl.substack.com/p/commenting-on-hacker-news
Yeah, I built a graphql API for HN for this reason. It will let you fetch all comments, users, and posts in a single request.
https://hngraphql.fly.dev/graphql
I use this API in a few places such as a custom New Tab extension I made for myself on Chromium based browsers:
https://github.com/overshard/newtab/blob/master/newtab.js#L1...
Haven't had any issues with it!
I'm currently writing a HN post score tracker (basically it plots score variations over time since they were in new for each popular post) and it's really convenient that you can just subscribe with eventsource [0] and get realtime update when something changes without having to manually poll each post wasting resources. Not yet sure about the latency though.
[0] https://github.com/jpopesculian/reqwest-eventsource/
I wrote a simple hn data downloaded based on this api. Last I remember I was able to download the entire corpus by letting it run overnight.
https://github.com/ashish01/hn-data-dumps
Similar to this, I created "HN Faves API", which is an API to fetch a user's favorited posts and comments on HN. Interestingly, HN doesn't have an official API for this.
On GitHub: https://github.com/plibither8/hn-faves-api
You can try it out here: https://hn-faves.mihir.ch