3 ms·
You can make the intermediate step a bit more structured too via https://github.com/HackerNews/API https://github.com/HackerNews/API For example, for the March
by shagie 4y ago
You can make the intermediate step a bit more structured too via https://github.com/HackerNews/API https://github.com/HackerNews/API
For example, for the March one it is ID 34983767 (from the algolia search or a "there's only so many of them, here's a list that I'll add to each month").
You can then get a list of all the top level comments at https://hacker-news.firebaseio.com/v0/item/34983767.json?print=pretty https://hacker-news.firebaseio.com/v0/item/34983767.json?pri...
And then pulling up a comment at https://hacker-news.firebaseio.com/v0/item/35255027.json?print=pretty https://hacker-news.firebaseio.com/v0/item/35255027.json?pri... to not have to parse any of its child comments or the HTML of the page.
(late edit: and re-reading the blog post while not trying to pay half attention to a meeting... that is what you are doing)
- marcotm 4y agoThanks for mentioning the Firebase-based API. I knew it existed, but somehow I went with the Algolia API by default. I use their HN search quite a bit, so that's probably why I stuck with them. (no affiliation)