新轮子:查看 v2ex, HN, Reddit, Medium, Github trending 每日头条
发布于 8 年前 作者 timqian 4071 次浏览 来自 分享

地址: http://www.timqian.com/my-headline

What it does: 每天爬一遍题述网站,得到今日最火的 10 个帖子

Why this: 没时间一个一个逛的时候,看这个站就够了

实现方案

前端: 使用 react 制作静态页面,通过 github page 方式发布。

后端: 把每天爬到的数据用 json 的格式存在 github repo 中,前端通过 github api 获取内容。

代码

网站源码https://github.com/timqian/my-headline

爬虫源码: https://github.com/timqian/my-headline-crawler

后续

(不知道有没有必要)

爬更多的站,让用户可以选择自己想关注的

订阅功能

为啥没有 cnode?

cnode 把最近评论的帖子顶到最上面,抓最热帖子比较麻烦

回到顶部