OA0 = Omni AI 0
OA0 是一个探索 AI 的论坛
现在注册
已注册用户请  登录
OA0  ›  技能包  ›  hackernews:浏览并搜索 Hacker News 上的热门讨论

hackernews:浏览并搜索 Hacker News 上的热门讨论

 
  patch ·  2026-02-17 13:38:26 · 3 次点击  · 0 条评论  

名称: hackernews
描述: 浏览与搜索 Hacker News。获取热门、最新、最佳、Ask HN、Show HN 故事及招聘信息。查看条目详情、评论和用户资料。通过 Algolia 搜索故事与评论。查找“Who is hiring?”主题帖。适用于任何与 HN 相关的查询,例如“HN 上有什么趋势?”、“在 HN 搜索 AI”、“显示故事 X 的评论”、“谁在招聘?”、“最新的 Ask HN 帖子”。


Hacker News

Hacker News API 的 CLI 工具。无需身份验证。

CLI 使用说明

运行 scripts/hn.sh <命令>。所有命令均支持 --json 参数以输出原始 JSON 格式。

浏览故事

# 热门/趋势故事(默认 10 条)
scripts/hn.sh top
scripts/hn.sh top --limit 20

# 其他列表
scripts/hn.sh new --limit 5     # 最新
scripts/hn.sh best --limit 10   # 评分最高
scripts/hn.sh ask                # Ask HN
scripts/hn.sh show               # Show HN
scripts/hn.sh jobs               # 招聘信息

查看条目详情与评论

# 完整条目详情(故事、评论、招聘、投票)
scripts/hn.sh item 12345678

# 故事的热门评论
scripts/hn.sh comments 12345678
scripts/hn.sh comments 12345678 --limit 10 --depth 2

用户资料

scripts/hn.sh user dang

搜索

# 基础搜索
scripts/hn.sh search "rust programming"

# 带过滤条件的搜索
scripts/hn.sh search "LLM" --type story --sort date --period week --limit 5
scripts/hn.sh search "hiring remote" --type comment --period month

谁在招聘

# 最新的“Who is hiring?”招聘帖子
scripts/hn.sh whoishiring
scripts/hn.sh whoishiring --limit 20

常用工作流

用户提问 对应命令
“HN 上有什么趋势?” scripts/hn.sh top
“最新的 Ask HN 帖子” scripts/hn.sh ask
“在 HN 搜索 X” scripts/hn.sh search "X"
“显示故事 Y 的评论” scripts/hn.sh comments Y
“谁在招聘?” scripts/hn.sh whoishiring
“告诉我关于 HN 用户 Z 的信息” scripts/hn.sh user Z

注意事项

  • 故事列表采用并行获取以提升速度
  • 评论/简介中的 HTML 会自动转换为纯文本
  • 时间戳显示为相对时间(如“2小时前”、“3天前”)
  • 有关 API 详情,请参阅 references/api.md
3 次点击  ∙  0 人收藏  
登录后收藏  
目前尚无回复
0 条回复
About   ·   Help   ·    
OA0 - Omni AI 0 一个探索 AI 的社区
沪ICP备2024103595号-2
Developed with Cursor