工具与资源github.com
haxor-news:在命令行里像黑客一样浏览 Hacker News
Browse Hacker News Like a Haxor
2016 — 2022,它一次次回到首页
黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。
导读
haxor-news 是一个用 Python 写的命令行 Hacker News 客户端,可以在终端里以「黑客风」配色浏览首页、评论和搜索,并带交互式自动补全。它的代码结构清晰、注释和测试齐全,常被当作学习如何写终端 UI 的范例。
为什么经久不衰:它既是好用的终端 HN 阅读器,也是一份高质量、可借鉴的 Python CLI 工程样本,因此多年后仍被反复提起。
HN 评论精选
盛赞项目代码质量与工程规范,值得学习借鉴。
我知道大家关注的是最终效果,但我真的被代码本身震撼到了:文档、测试、结构都做得极其出色,我已经看到几处想借用的东西,以后肯定还会回来取经。
brbsix查看英文原文
I know we're supposed to be focused on the end-result, but I'm really just in awe of the code. Everything is so incredibly well documented, tested, and structured. I already see a few things I want to borrow... will definitely be coming back to this project for ideas.
指出自动补全能力来自 python-prompt-toolkit 库。
自动补全功能看起来很妙,它是基于 python-prompt-toolkit 构建的。
daw___查看英文原文
The autocompleter feature looks neat, it's built on top of python-prompt-toolkit [0]. [0] https://github.com/jonathanslenders/python-prompt-toolkit
相比 pyhn、go-hn 等同类工具,它带来了新鲜感。
和已有工具相比,这是一个让人耳目一新的替代品,比如我长期钟爱的 pyhn,以及刚发布的 go-hn。
infodroid查看英文原文
This is a refreshing alternative to existing tools like my long-time favourite pyhn [1] as well as the newly-announced go-hn [2]. [1] https://news.ycombinator.com/item?id=5013321 [2] https://news.ycombinator.com/item?id=11479014
写 HN 客户端是绝佳的练手项目,社区的多样实现本身就是价值。
太棒了!而且我觉得写 HN 工具/客户端就像是现代极客版的 FizzBuzz(往好的方向说)。它不是必需品,但是很好的思维练习,很多人都想过做,而有了统一的 API,大家就能互相学习各种有创意的解法。
nlh查看英文原文
This is excellent! And also - I think that building HN utilities / clients is like the modern nerd FizzBuzz (in a good way). Is it strictly necessary? No, but it’s a great intellectual exercise, it’s something many of us have thought about, and because there’s a common API underlying, it gives folks a chance to learn about lots of creative ways to attack the same fundamental problem space. Keep it up everyone!
历次讨论
同类还值得读
直接在浏览器中启动 Linux 内核
Boot a linux kernel right inside your browser.
Fabrice Bellard 的 JSLinux 页面,用 JavaScript 在浏览器里启动一个 Linux 内核,并提供一个可交互的终端环境。
工具与资源上首页 5 次 · 2011–2025bellard.orgHacker News 未公开功能与行为清单(2018)
A List of Hacker News's Undocumented Features and Behaviors (2018)
数据科学家 Max Woolf 整理的 Hacker News 未公开功能与行为清单,涵盖投票机制、排名算法、账号惩罚等社区运作细节。
工具与资源上首页 5 次 · 2019–2025github.comMapSCII:在终端中用盲文和 ASCII 渲染地图
MapSCII – Braille and ASCII map renderer for the console
MapSCII 是一个在命令行终端里渲染地图的开源工具,用盲文字符和 ASCII 字符把地理数据画成可交互浏览的字符地图。
工具与资源上首页 5 次 · 2017–2025github.com顶尖大学的免费在线课程
Free Online Courses from Top Universities
Open Culture 整理的一份免费在线课程合集,汇集了全球顶尖大学(如 MIT、斯坦福、耶鲁等)向公众开放的网络课程资源,涵盖音频、视频等多种形式。
工具与资源上首页 5 次 · 2010–2022openculture.com淘气字符串:容易引发用户输入问题的字符串清单
Naughty Strings: A list of strings likely to cause issues as user-input data
一个 GitHub 仓库,收录了大量容易让程序出问题的用户输入字符串,如特殊字符、emoji、SQL 注入片段、系统命令等,供开发者用于测试输入处理逻辑。
工具与资源上首页 4 次 · 2015–2020github.com