Scrapers.lat logo scrapers.lat
新闻

Hacker News Scraper - Stories, Points & Comments

Scrape Hacker News stories by keyword with points, comment counts, author, URL, tags and timestamps. Sort by relevance or newest. Export to JSON, CSV or Excel.

13 每条记录的字段 JSON · CSV · Excel · API 按用量付费
hacker-news-scraper.json 200 OK
{
  "objectID": "22238335",
  "title": "Why Discord is switching from Go to Rust",
  "author": "Sikul",
  "points": 1582,
  "numComments": 642,
  "url": "https://blog.discordapp.com/why-discord-is-swi…",
  "storyUrl": "https://news.ycombinator.com/item?id=22238335",
  "domain": "blog.discordapp.com",
  "tags": ["story","author_Sikul","story_22238335"]
}
你会得到什么

每次运行都返回干净、带类型的记录,可直接用于你的 CRM、表格或数据库。

  • 每个结果对应一条干净记录,已去重并规范化
  • JSON、CSV 或 Excel 的稳定结构,也可通过 Apify API 读取
  • 在云端按用量付费,无需安装或维护
返回的字段
Object IDTitleAuthorPointsNum CommentsUrlStory UrlDomainTagsCreated AtTop Comments
示例输出

一条真实的示例记录,正是你收到的结构。

Object IDTitleAuthorPoints
22238335Why Discord is switching from Go …Sikul1582
40172033Leaving Rust gamedev after 3 yearsdarthdeus1484
25610741A half-hour to learn Rustselvan1444
GET /hacker-news-scraper
{
  "objectID": "22238335",
  "title": "Why Discord is switching from Go to Rust",
  "author": "Sikul",
  "points": 1582,
  "numComments": 642,
  "url": "https://blog.discordapp.com/why-discord-is-swi…",
  "storyUrl": "https://news.ycombinator.com/item?id=22238335",
  "domain": "blog.discordapp.com",
  "tags": ["story","author_Sikul","story_22238335"]
}

常见问题

Can I get the newest stories instead of the most relevant?

Yes. Set the sort option to newest first to get stories in reverse chronological order.

Does it include the discussion link?

Yes. Every record includes a direct link to the Hacker News thread and, when present, the linked article URL.

How many stories can I collect?

As many as match your keyword; set Max Items to control the total.

How fresh is the data?

Points and comment counts are read live at run time, so each record reflects the moment of the run (see observedAt).

你准备好,它就就绪。

现在就在 Apify 上运行这个爬虫,或让我们按你的确切需求定制一个。