Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Cloudflare Quick Tunnels(cloudflare.com ↗)
    111comments
  2. There's no point at which turning your brain off will work(danluu.com ↗)
    4comments
  3. An Empirical Study of Harness Design for Coding Agents(arxiv.org ↗)
    35comments
  4. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    discuss
  5. North Korean nuclear test sets off years of earthquakes(science.org ↗)
    66comments
  6. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    14comments
  7. OpenJev(openjev.com ↗)
    202comments
  8. C++26: Trivial infinite loops are no longer undefined behaviour(sandordargo.com ↗)
    94comments
  9. Mathematicians Build Long-Awaited Graph Sandwich(quantamagazine.org ↗)
    4comments
  10. I vibed a proof of Conway's conjecture(overreacted.io ↗)
    96comments
  11. GrassLobster: AI Agentic Generation of Parametric Geometry Workflows(miro.vision ↗)
    3comments
  12. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    179comments
  13. Show HN: Microsoft Office running with Wine on Linux with no virtualization(github.com/tombert ↗)
    41comments
  14. I don't like passkeys(hawksley.dev ↗)
    510comments
  15. BeanShell3 in Development(beanshell.github.io ↗)
    10comments
  16. The Shadows Lurking in the Equations – Underwater Islands(gods.art ↗)
    9comments
  17. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  18. Jemalloc 5.4.0(github.com/jemalloc ↗)
    72comments
  19. NATS publishes preliminary report on technical incident of 8 September(nats.aero ↗)
    23comments
  20. The scourge of x86 emulation(fex-emu.com ↗)
    67comments
  21. Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint(prismml.com ↗)
    176comments
  22. Warren Buffett Steps Down as Berkshire Chairman, Names Son to Replace Him(nytimes.com ↗)
    150comments
  23. US Treasuries Have Become Unappetizing for Foreign Central Banks and Governments(wolfstreet.com ↗)
    40comments
  24. Build Faster Feedback Loops Using Qualitative User Research(nseldeib.com ↗)
    discuss
  25. Qwen 3.8 Omni Flash(qwen.ai ↗)
    117comments
  26. Second Circuit Allows Government to Search Electronic Devices at the Border(knightcolumbia.org ↗)
    33comments
  27. Show HN: Scry, programmable internet search w/ congestion pricing(scry.io ↗)
    2comments
  28. How to Write with an LLM(sockpuppet.org ↗)
    192comments
  29. Pre-Greek: The lost language hidden within Ancient Greek(linguisticdiscovery.com ↗)
    60comments
  30. Microsoft exec called AI scraping 'the largest theft of labor in human history'(techcrunch.com ↗)
    621comments

Downloading All of Hacker News Posts and Comments

136 pointsby 12y agoshitalshah.com
38 comments
12y agoHN ↗

I did, and with that, I had also included that Python code in GitHub, which uses the same implementation as the OP: https://github.com/minimaxir/hacker-news-download-all-storie...

Fun fact: At 10,000 calls/hour and 1,000 objects per request, you can download all stories AND comments in less than an hour.

As an aside: I tried to use ML on Hacker News stories and have had exactly zero success. (i.e. the predictive models are not statistically significantly better than the NIR)

12y agoHN ↗

I did similar analysis here http://karpathy.ca/myblog/?p=559 but it's a little less clean presentation.

I'm quite excited about this data release- there are many interesting ML models that could be trained here. One I hacked on previously on my own data was a comment ranker which uses a ranking loss to rank comments consistent with their observed order in data (which roughly reflects their number of upvotes, I believe). In principle I think it could be converted to a browser extension that gives a score for how well received your comment will be conditioned on the parent comment, as you write it in the text box. One of the main issues I ran into when I hacked a bit on it was space complexity, since you need to keep all the word embeddings (usually on order of 50-200D / word) around in memory of the extension, and there are many words.

12y agoHN ↗

Your "Fork me on Github" banner covers your hamburger menu icon.

12y agoHN ↗

Your "Stories Download URL" is the same as the "Comments Download URL".

12y agoHN ↗

Easy fix, just change comments in the url to stories.

12y agoHN ↗

I imagine the point of that comment was to suggest that the OP fixes it to make it easier for others.

12y agoHN ↗

It's strange to see 1.3m stories and only 5.8m comments. I look forward to examining the data to see how many stories have 0 comments.

12y agoHN ↗

Lots and lots of stories never make it anywhere near the front page. Mostly spam.

12y agoHN ↗

But I think the spam is caught and doesn't register through the api...

12y agoHN ↗

Stories which are dead will not show in the API, that's correct. But the proportion of submissions that make it to the front page / get any comments is very low. (<10%)

12y agoHN ↗

"Mostly spam."

No. Most stories in "new" get zero comments and are not spam.

12y agoHN ↗

Most stories are not spam, they are just posted at wrong time.

To give you an example, this story itself was posted on last Friday evening PST (https://news.ycombinator.com/item?id=7825146). It got just one upvote and 0 comments. Exact same story with exact same page content on exact same domain was posted on Monday (today) afternoon PST and it got 80+ upvotes, 30+ comments and got on frontpage for more than 6 hours!

A lot of stories are like this. HN ranking algorithm isn't perfect.

12y agoHN ↗

Danke...on my 1,000th day (which was quite a few days ago), I wanted to do an analysis of how my upvoting/submission habits changed...that is, over the 3+ years I've been on HN, did my interests in hacking and languages diversify? But in terms of what I upvoted, it's hard to tell without the entire post set whether my interests changed, or the composition of HN's submissions.

Also, it's great to be able to filter through and find all of the highly-upvoted stories that I've missed out, and programmatically push them to Pinboard. Thanks for this.

12y agoHN ↗

Have you considered sharing the data as a torrent? The current FileDropper speed is quite low (~200KB/s)

P.S. Thanks for the data, you saved a good amount of our time.

12y agoHN ↗

magnet:? xt=urn:btih:A3E2200A9A99906476E2E88CA002477219A3C2C3&dn=HN&tr= udp%3a%2f%2ftracker.openbittorrent.com%3a80%2fannounce&tr=udp% 3a%2f%2ftracker.publicbt.com%3a80%2fannounce&tr=udp%3a%2f%2ftr acker.ccc.de%3a80%2fannounce

12y agoHN ↗

PLEASE add four spaces before very long unbroken strings.

12y agoHN ↗

Content Blocked (content_filter_denied)

Content Category: "Suspicious"

Which is an odd catch-all category. It may be a keyword match from the domain. That sucks. Anyone got the github link?

12y agoHN ↗

Great work! Does anyone know if there is anything similar for Slashdot?

12y agoHN ↗

The /. comments with its tags "Interesting", "Funny", "Insightful", "Informative", "Flamebait" can be very helpful for machine learning purposes.

12y agoHN ↗

Thank you! I was trying to do that but couldn't find information on their policy about accepting and hosting such data. I've added links to this as well as Torrent links other folks had sent.

12y agoHN ↗

Very helpful. I was looking for dataset like this recently. Now there it is. Great work.

12y agoHN ↗

Thanks for the dataset! I've been wanting this corpus for a while. I have a few ideas I want to run with this.

12y agoHN ↗

Just wanted to start a thread on some project ideas for this data:

* Discover geek friendly WordPress themes and plugins by analyzing CSS in stories posted on HN.

* My pet EVIL project: Extract self identifying statements from comments and create profile for HN users :).

* Find out abandonment rate of veteran users.

* Find out undiscovered great stories that didn't got in to frontpage because algorithm deficiency in HN (for example, get links posted by people with 10K+ karma but without upvotes.

12y agoHN ↗

Construct phrases like Yoda, shall I. Unmask this Identity, never you shall.

12y agoHN ↗

My pet EVIL project: Extract self identifying statements from comments and create profile for HN users :).

I'd bet that you're not the only one who thought of that. And for less money I'd bet that someone has beat you to it.

12y agoHN ↗

yup :) Except I've been doing it manually as I see comments/commenters that interest me and adding them to a greasemonkey script that decorates posts with icons identifying users and their affiliations. Does that make me evil?

If I find some free time I might download this and run some extracts as sytelus suggested.

12y agoHN ↗

What licence is the HN content made available under? I'm trying to find some T & C's that I might have agreed to but I haven't them yet. I don't think you can assume that comments made here are free to copy, reuse, manipulate and republish elsewhere

12y agoHN ↗

would be nice if there was something similar for reddit.