TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How fast can you hit all 34M items in Hacker News Firebase API?

8 pointsby marsupialtail_2about 2 years ago
This could be a nice benchmark for a http client. I wonder if anybody with experience with reqwest in Rust could chime in. Currently using aiohttp I can get around 1k requests/s from the Hacker News API, which means it will take around 9 hours to get all the items....

4 comments

krappabout 2 years ago
That depends entirely on your network latency and connection speed, doesn&#x27;t it? I think a better benchmark for a client would be generating pages&#x2F;threads, because HN&#x27;s data structures are so suboptimal for that even HN itself sometimes has trouble with it. So take a super long thread like <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12907201" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12907201</a> and see how long it takes to render it fully.
aynycabout 2 years ago
I’ve done it maybe 2 years ago learning pythons asyncio. I remember the time is around 3.5 hours. I only perform the scrape maybe 5-6 times over a week to avoid overloading the server.
avinasshabout 2 years ago
If it makes your experiment any easier, I have written a hacker news API wrapper in Python - <a href="https:&#x2F;&#x2F;github.com&#x2F;avinassh&#x2F;haxor">https:&#x2F;&#x2F;github.com&#x2F;avinassh&#x2F;haxor</a>
sc90about 2 years ago
Isn&#x27;t it rate limited?
评论 #34866882 未加载