用途:ez-hn 是一个简单的 typer CLI,用于在命令行浏览和搜索 Hacker News,无需任何认证。
主要能力:可获取 top/trending、new、best、Ask HN、Show HN 故事以及 job postings;查看条目详情与评论;查看用户资料;搜索故事;查看 Who is Hiring 招聘帖。所有命令均支持 --json 以输出原始 JSON。
使用方式:运行 uv run skills/ez-hn/scripts/hn.py <command>。浏览故事示例:hn.py top(默认 10 条,可用 --limit 20 增加)、hn.py new、hn.py best、hn.py ask、hn.py show、hn.py jobs。查看条目与评论:hn.py item 12345678、hn.py comments 12345678(可加 --limit 10 --depth 2)。用户资料:hn.py user dang。搜索:hn.py search "rust programming",也可加 --type story --sort date --period week --limit 5。招聘:hn.py whoishiring(可加 --limit 20)。
适用场景:快速查看 HN 热门内容、最新 Ask HN 帖、搜索特定主题、查看某故事评论、了解招聘信息或某用户资料。
限制:资料未提供安装步骤、依赖要求、速率限制、错误处理或平台兼容性等细节,暂未提供。