新闻
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.
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 ID | Title | Author | Points |
|---|---|---|---|
| 22238335 | Why Discord is switching from Go … | Sikul | 1582 |
| 40172033 | Leaving Rust gamedev after 3 years | darthdeus | 1484 |
| 25610741 | A half-hour to learn Rust | selvan | 1444 |
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).