Lurker News
YouTube-style UI over 6,454 videos sourced from 39,834 HN comments since 2007.

https://hackertube.org/

Comments (646) 291 threads

Show all comments

Showing thread 108 of 291

gambiting3 replies#
>>Opus downloaded all comments of HackerNews

I'm actually surprised this was that easy to do, ngl

dang2 replies#
HN's Firebase-based API (https://github.com/hackernews/api) makes that easy, until you want to reconstruct the threads (i.e. who replied to who) and then it's annoying.

For years* I've wanted to replace that API with one we operate ourselves, which will simply return a JSON version of any HN URL.
I've finally started working on this! Perhaps my favorite thing about LLMs is how they make projects possible which would otherwise not have gotten started.
Edit: perhaps I should explain what I mean by that last bit.
The way I want this new API to work is (1) HN should use it internally to generate HTML pages, and (2) there can't be any regressions - nothing should change in the web version. This is a pain to get right, as it's easy subtly alter the details, and it's annoying to regression-test everything. Also, (3) with a design like this, it is easy—and critical not to—leak data that ought to remain private (e.g. people's IP addresses)
This is the sort of pain and annoyance that LLMs are amazing at taking care of. I get to focus on the parts I want to think about—the design and (yes) the code—and have a tireless assistant do the gruntwork and review. Without this I don't think I'd have gotten around to working on it.
* (edit: over a decade in fact - see collapsed reply)

OrangeMusic#
Interesting - and timely! I've just started working on a HN client, and the Firebase API is very barebones (N^M calls to get all comments of a given story), while the Algolia API is unfortunately _almost_ good but the comments are not sorted by popularity (making it more or less useless for a client) (of course I realized that after having coded the client for it).

Now I'm in the middle of implementing scraping of the HTML to get all comments, sorted correctly, in one call... Not fun, needless to say.
FWIW it looks like this is the approach taken by the "Hackers" iOS app [1].
I hope your modern API project will see the light of day soon-ish.
[1] = https://github.com/weiran/Hackers/blob/master/Data/Sources/D...

karpathy#
There turns out to be an export on HuggingFace as well as a bunch of parquets.
xpct#
This is a very niche forum that contains mostly textual data. I believe the full dataset is under 20GBs.