爱意满满的作品展示区。
timqian
10.03D

新轮子:查看 v2ex, HN, Reddit, Medium, Github trending 每日头条

  •  1
     
  •   timqian ·
    timqian · Apr 11, 2016 · 7949 views
    This topic created in 3859 days ago, the information mentioned may be changed or developed.

    地址: 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

    后续

    (不知道有没有必要)

    1. 爬更多的站,让用户可以选择自己想关注的
    2. 订阅功能
    44 replies  •  2016-04-13 09:23:53 +08:00
    stabc
    stabc
    Apr 11, 2016
    1
    挺好的东西,建议加个时间权重,过滤 V2EX 新顶上来的老帖子。
    timqian
    timqian
    OP
    Apr 11, 2016
    2
    @stabc V2EX 是直接拿 最热 板块的内容
    smilingsun
    smilingsun
    Apr 11, 2016
    3
    好赞!
    spademan
    spademan
    Apr 11, 2016
    4
    界面 稍微优化一下 ,不知道为什么看着好困
    timqian
    timqian
    OP
    Apr 11, 2016
    5
    @spademan 哈哈,你确定不是因为想睡午觉了?
    timqian
    timqian
    OP
    Apr 11, 2016
    6
    @smilingsun thanks!
    Abirdcfly
    Abirdcfly
    Apr 11, 2016
    7
    不错不错..我就想干个这事...不过是自定网址
    aWangami
    aWangami
    Apr 11, 2016
    8
    界面优化一下之后确实会有食欲一些
    spademan
    spademan
    Apr 11, 2016
    9
    @timqian 哈哈哈 可能是有点困 ,不过界面可以做简洁点 稍微引个 css 库就能美炸天 哈哈
    timqian
    timqian
    OP
    Apr 11, 2016
    10
    @spademan
    @aWangami 嗯,明天有空改改 ui ,也欢迎你们提 pr 哈

    @Abirdcfly 如果用的人多的话,我在考虑可以增加 其他网站,然后用户可以自己选择关注的
    Asimov
    Asimov
    Apr 11, 2016 via Android
    11
    正好需要
    mornlight
    mornlight
    Apr 11, 2016
    12
    已加收藏夹
    zymmm3
    zymmm3
    Apr 11, 2016
    13
    你太忙了。
    GhostEX
    GhostEX
    Apr 11, 2016
    14
    已经收藏,感谢分享
    mgcnrx11
    mgcnrx11
    Apr 11, 2016
    15
    👍不错,支持
    timqian
    timqian
    OP
    Apr 11, 2016
    16
    @Asimov
    @GhostEX
    @mornlight
    @mgcnrx11 很高兴对你们有点用


    @zymmm3 恰恰相反。。。
    jmc891205
    jmc891205
    Apr 11, 2016
    17
    这不叫轮子 已经是辆车啦 lol
    Damaidaner
    Damaidaner
    Apr 11, 2016
    18
    这个好,美化一下就完美了
    tinkerer
    tinkerer
    Apr 11, 2016
    19
    good.
    crystom
    crystom
    Apr 11, 2016
    20
    急需 css 支援
    cname
    cname
    Apr 11, 2016
    21
    急需 css +PS 支援
    pheyer
    pheyer
    Apr 11, 2016
    22
    Medium 的呢?没见着啊
    timqian
    timqian
    OP
    Apr 11, 2016
    23
    @pheyer 今天跑的时候没翻墙, medium 没得到,考虑以后用 c9.io 跑
    timqian
    timqian
    OP
    Apr 11, 2016
    24
    @onionnews
    @crystom
    @Damaidaner 的确,,,
    dongyado
    dongyado
    Apr 11, 2016
    25
    界面简洁是好,不过看起来就是不美观。。。可能尺寸间隔啥的需要调一下
    uniquepengpeng
    uniquepengpeng
    Apr 11, 2016
    26
    不错不错,期待后续
    princelai
    princelai
    Apr 11, 2016 via Android
    27
    有 rss 提供吗,习惯在软件里读
    erichuang1994
    erichuang1994
    Apr 11, 2016
    28
    尝试来了个后续,感觉还是蛮丑的。。 http://erichuang1994.me/my-headline/index.html
    viosey
    viosey
    Apr 11, 2016
    29
    已收藏(๑•̀ㅂ•́)و✧
    建议以后前端可以美化一下
    timqian
    timqian
    OP
    Apr 12, 2016 via iPhone
    30
    @princelai 后续可以考虑加上
    timqian
    timqian
    OP
    Apr 12, 2016 via iPhone
    31
    @erichuang1994 谢谢关注,看到你的 issue 了
    bt0
    bt0
    Apr 12, 2016 via iPhone
    32
    已推荐给 rezong.com 的负责人
    Henrybsbhp
    Henrybsbhp
    Apr 12, 2016 via iPhone
    33
    好东西,赞一个!
    joye1230
    joye1230
    Apr 12, 2016
    34
    好轮子,收藏栏首页了
    timqian
    timqian
    OP
    Apr 12, 2016
    35
    @bt0 rezong.com 是什么?网站打不开
    sakeven
    sakeven
    Apr 12, 2016
    36
    赞
    bt0
    bt0
    Apr 12, 2016
    37
    @timqian 就是一个域名 热总(热点汇总?) 你需要吗 他说可以解析给你用
    timqian
    timqian
    OP
    Apr 12, 2016
    38
    @bt0 谢谢啦,暂时不需要
    bt0
    bt0
    Apr 12, 2016
    39
    @timqian 好的
    fangbei
    fangbei
    Apr 12, 2016
    40
    挺好的,小工具挺实用,还有创客精神。
    henryxie2093
    henryxie2093
    Apr 12, 2016
    41
    nice
    timqian
    timqian
    OP
    Apr 12, 2016
    42
    lijsh
    lijsh
    Apr 13, 2016
    43
    数据源都很不错,想引用你的数据然后我自己写个界面,可以吗?
    timqian
    timqian
    OP
    Apr 13, 2016 via iPhone
    44
    @lijsh 可以的 MIT License
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2879 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 73ms · UTC 13:28 · PVG 21:28 · LAX 05:28 · JFK 08:28
    ♥ Do have faith in what you're doing.