9

通过 GitHub 订阅 Hacker News 每日 top 10

 3 years ago
source link: https://blog.t9t.io/headllines-2020-09-03/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

通过 GitHub 订阅 Hacker News 每日 top 10

2020-09-03 by timqian

代码仓库: https://github.com/headllines/hackernews-daily

想要解决的问题

Hacker News 是我最主要的信息源之一, 他独创的排序算法和严格的反作弊特性让我每天都能在首页找到有趣的内容. 不过也正是因为这个排序算法, 通常来讲每隔个十几分钟, 首页上的内容就会发生变化.

我没有时间经常去逛. 如果能有一个工具每天帮我挑出最热门的 10 个帖子发给我就好了.

众所周知, GitHub 的 Action 支持执行定时任务. 于是我写了一个脚本, 获取每日 upvotes 最多的帖子, 并且记录到了项目的 issue

  1. 用户 watch 这个项目之后, 每当有新的 issue, 就会在 GitHub 上收到通知(同时收到邮件通知)
  2. 感谢 RSSHub, 用户也可以通过 RSS 来订阅 issue 的更新
  3. 完全 0 成本, 不用担心那一天因为成本问题运行不下去了

可以通过 watch GitHub 上的仓库 或者 RSS 来订阅更新, 除了每天的头条, 我还做了每周和每月的

定期获取头条的这个需求其实不只是对 Hacker News 存在, 对于 ProductHunt, GitHub, V2EX… 等等网站. 我相信都有制作”头条抓取器“的价值. 我和 leadream 决定一起试着做做这个 side project. 我们注册了一个域名

headllines.com

slogan 是 “Open source headline collectors”.

Hacker News Top 10 只是一个开始, 之后我们会增加更多的 headline collectors, 会有一个方便集中阅读的网站…

如果你也对这件事情感兴趣, 欢迎通过邮件订阅我们的进展或者加入 Telegram 群 交流.





About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK