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(無需認證)。