Hacker News
从命令行阅读 Hacker News。
命令
热门故事
uv run {baseDir}/scripts/hn.py top # 前 10 条故事
uv run {baseDir}/scripts/hn.py top -n 20 # 前 20 条故事
其他内容
uv run {baseDir}/scripts/hn.py new # 最新故事
uv run {baseDir}/scripts/hn.py best # 最佳故事
uv run {baseDir}/scripts/hn.py ask # Ask HN
uv run {baseDir}/scripts/hn.py show # Show HN
uv run {baseDir}/scripts/hn.py jobs # 招聘信息
故事详情
uv run {baseDir}/scripts/hn.py story <id> # 故事及置顶评论
uv run {baseDir}/scripts/hn.py story <id> --comments 20 # 更多评论
搜索
uv run {baseDir}/scripts/hn.py search "AI agents" # 搜索故事
uv run {baseDir}/scripts/hn.py search "Claude" -n 5 # 限制结果数量
API
使用官方的 Hacker News API(无需认证)。