← 返回
开发者工具

Hacker News

Browse and search Hacker News. Fetch top, new, best, Ask HN, Show HN stories and job postings. View item details, comments, and user profiles. Search stories and comments via Algolia. Find "Who is hiring?" threads. Use for any HN-related queries like "what's trending on HN?", "search HN for AI", "show comments on story X", "who is hiring?", "latest Ask HN posts".
浏览和搜索 Hacker News。获取热门、最新、最佳、Ask HN、Show HN 故事及招聘信息。查看条目详情、评论和用户资料。通过 Algolia 搜索故事和评论。查找“Who is hiring?”帖子。适用于任何 HN 相关查询,例如“HN 上有什么趋势?”、“在 HN 搜索 AI”、“显示故事 X 的评论”、“谁在招聘?”、“最新 Ask HN 帖子”。
gchapim
开发者工具 clawhub v1.0.0 1 版本 99691.1 Key: 无需
★ 10
Stars
📥 4,318
下载
💾 367
安装
1
版本
#latest

概述

Hacker News

CLI tool for the Hacker News API. No authentication required.

CLI Usage

Run scripts/hn.sh . All commands support --json for raw JSON output.

Browse Stories

# Top/trending stories (default 10)
scripts/hn.sh top
scripts/hn.sh top --limit 20

# Other lists
scripts/hn.sh new --limit 5     # newest
scripts/hn.sh best --limit 10   # highest rated
scripts/hn.sh ask                # Ask HN
scripts/hn.sh show               # Show HN
scripts/hn.sh jobs               # job postings

View Item Details & Comments

# Full item details (story, comment, job, poll)
scripts/hn.sh item 12345678

# Top comments on a story
scripts/hn.sh comments 12345678
scripts/hn.sh comments 12345678 --limit 10 --depth 2

User Profiles

scripts/hn.sh user dang

Search

# Basic search
scripts/hn.sh search "rust programming"

# With filters
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

# Latest "Who is hiring?" job postings
scripts/hn.sh whoishiring
scripts/hn.sh whoishiring --limit 20

Common Workflows

User asksCommand
------
"What's trending on HN?"scripts/hn.sh top
"Latest Ask HN posts"scripts/hn.sh ask
"Search HN for X"scripts/hn.sh search "X"
"Show me comments on story Y"scripts/hn.sh comments Y
"Who is hiring?"scripts/hn.sh whoishiring
"Tell me about HN user Z"scripts/hn.sh user Z

Notes

  • Story lists use parallel fetching for speed
  • HTML in comments/bios is auto-converted to plain text
  • Timestamps shown as relative time ("2h ago", "3d ago")
  • For API details, see references/api.md

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 10:42 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Oban Designer

gchapim
为 Elixir 设计并实现 Oban 后台任务 Worker,配置队列、重试策略、唯一性约束、cron 定时调度和错误处理,生成 Worker、队列配置及测试设置。适用于在 Elixir 项目中使用 Oban 添加后台任务、异步处理、定时
★ 0 📥 2,262
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,852
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,742