抓取Hacker News -- 资讯、职位、评论与用户

从Y Combinator的Hacker News提取结构化数据。抓取热门资讯、最新资讯、招聘信息、Ask HN讨论、Show HN项目、评论和用户资料。纯HTTP -- 无需Chrome,无需Playwright。

在Apify上打开 → 立即试用
Docker镜像
~12MB
内存
128MB
代理
数据中心
覆盖范围
全球
价格
$0.50/1k条目
反爬虫
TLS指纹

可抓取的数据

主要用例

API示例

# 通过Apify API启动一次运行
curl -X POST "https://api.apify.com/v2/acts/santamaria-automations~ycombinator-scraper/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "top",
    "maxResults": 100,
    "includeComments": true
  }'

# 或通过MCP与AI代理一起使用:
# https://mcp.apify.com?tools=santamaria-automations/ycombinator-scraper

集成

对比

特性NanoScrapeHN API封装
Docker镜像~12MB不确定
内存占用128MB不确定
每1k条目成本$0.50$2 - $10
输出格式结构化JSON原始API格式
包含评论是(嵌套)需要单独调用
搜索内置Algolia API

输出字段

字段类型示例
titlestringShow HN: I built a new database
urlstringhttps://example.com/article
scorenumber342
authorstringpg
comment_countnumber187
created_atstring2026-04-23T08:15:00Z
typestringstory
hn_urlstringhttps://news.ycombinator.com/item?id=...
在Apify上打开 → 立即试用 -- 提供免费套餐