V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
beyoung
V2EX  ›  分享创造

还是给不太灵升级到 https 吧 改善界面细节 开放 api 接口

  •  1
     
  •   beyoung · 2017-08-16 23:06:56 +08:00 · 3471 次点击
    这是一个创建于 2656 天前的主题,其中的信息可能已经有所发展或是发生改变。

    前几天开放站点 api,流量异常,然后站点被运营商劫持了...

    于是做了这么几件事:

    • https on
    • lazyload images
    • fix tags style
    • change search box style
    • change menu hover style

    现开放两个 api:

    magnet-api: https://www.bt0.com/api/torrent.php?douban_id=26235354

    (参数为 douban_id)

    返回数据示例:

    {
        "msg": "success",
        "count": 29,
        "torrents": [
            {
                "720p": [
                    {
                        "episode": "1",
                        "title": "权力的游戏.第七季.第 01 集.Game.of.Thrones.S07E01.Dragonstone.720p.AMZN.WEBRip.DDP5.1.x264-GoT.1.24GB",
                        "size": "1.24GB",
                        "picture": "WEB-720P",
                        "magnet": "magnet:?xt=urn:btih:405b2945fc89b51dc9922e84f1a20046b2c6e682"
                    },
                    {
                        "episode": "1",
                        "title": "权力的游戏.第七季.第 01 集.Game.of.Thrones.S07E01.720p.WEB.h264-TBS.1.25GB",
                        "size": "1.25GB",
                        "picture": "WEB-720P",
                        "magnet": "magnet:?xt=urn:btih:b2b65de0b6bfefd92f3bcae47d8cebf69856a513"
                    },
                    {
                        "episode": "2",
                        "title": "权力的游戏.第七季.第 02 集.Game.of.Thrones.S07E02.720p.WEB.h264-TBS.1.02GB",
                        "size": "1.02GB",
                        "picture": "WEB-720P",
                        "magnet": "magnet:?xt=urn:btih:5d97a27e88f2ad5621fee52b694d5f10494159fe"
                    },
                    {
                        "episode": "2",
                        "title": "权力的游戏.第七季.第 02 集.Game.of.Thrones.S07E02.Stormborn.720p.AMZN.WEBRip.DDP5.1.x264-GoT.1.22GB",
                        "size": "1.22GB",
                        "picture": "WEB-720P",
                        "magnet": "magnet:?xt=urn:btih:f5c2cd7eb3683242b9b15ca1f305f3932a4d777a"
                    },
                    {
                        "episode": "2",
                        "title": "权力的游戏.第七季.第 02 集.Game.of.Thrones.S07E02.iNTERNAL.REPACK.720p.WEB.h264-TBS.1.22GB",
                        "size": "1.22GB",
                        "picture": "WEB-720P",
                        "magnet": "magnet:?xt=urn:btih:a367596f99c733147e85ae030d9d793d15d58968"
                    },
                    {
                        "episode": "3",
                        "title": "权力的游戏.第七季.第 03 集.Game.of.Thrones.S07E03.720p.WEB.h264-TBS.1.31GB",
                        "size": "1.31GB",
                        "picture": "WEB-720P",
                        "magnet": "magnet:?xt=urn:btih:11d2e965bf78f8e07696f2e6aec94d0960452c94"
                    },
                    {
                        "episode": "3",
                        "title": "权力的游戏.第七季.第 03 集.Game.of.Thrones.S07E03.The.Queens.Justice.720p.AMZN.WEBRip.DDP5.1.x264-GoT.1.38GB",
                        "size": "1.38GB",
                        "picture": "WEB-720P",
                        "magnet": "magnet:?xt=urn:btih:f470d5da32bcdaad5c0b3b08af628f008adf6832"
                    },
                    {
                        "episode": "4",
                        "title": "权力的游戏.第七季.第 04 集.Game.of.Thrones.S07E04.720p.WEB.h264-TBS.1.04GB",
                        "size": "1.04GB",
                        "picture": "WEB-720P",
                        "magnet": "magnet:?xt=urn:btih:da9e032050b68fe061f1eb7968d542d17764e617"
                    },
                    {
                        "episode": "4",
                        "title": "权力的游戏.第七季.第 04 集.Game.of.Thrones.S07E04.The.Spoils.of.War.720p.AMZN.WEBRip.DDP5.1.x264-GoT.1.2GB",
                        "size": "1.2GB",
                        "picture": "WEB-720P",
                        "magnet": "magnet:?xt=urn:btih:9bcbaea86e1f9863cfc2a1d25fe708c215f04e81"
                    },
                    {
                        "episode": "5",
                        "title": "权力的游戏.第七季.第 05 集.Game.of.Thrones.S07E05.Eastwatch.720p.AMZN.WEB-DL.DDP5.1.x264-GoT.1.23GB",
                        "size": "1.23GB",
                        "picture": "WEB-720P",
                        "magnet": "magnet:?xt=urn:btih:d785e8a917f823a287849e39371824a5034602a1"
                    },
                    {
                        "episode": "5",
                        "title": "权力的游戏.第七季.第 05 集.Game.of.Thrones.S07E05.Eastwatch.720p.AMZN.WEB-DL.DDP5.1.H.264-GoT.1.23GB",
                        "size": "1.23GB",
                        "picture": "WEB-720P",
                        "magnet": "magnet:?xt=urn:btih:542f3d5fb50a8de19a1a9d8cfc11d175b9ef3ad8"
                    },
                    {
                        "episode": "5",
                        "title": "权力的游戏.第七季.第 05 集.Game.of.Thrones.S07E05.720p.WEB.h264-TBS.1.23GB",
                        "size": "1.23GB",
                        "picture": "WEB-720P",
                        "magnet": "magnet:?xt=urn:btih:b413269e97420d693e4670a7841f3e85d838787a"
                    }
                ]
            },
            {
                "1080p": [
                    {
                        "episode": "1",
                        "title": "权力的游戏.第七季.第 01 集.Game.of.Thrones.S07E01.1080p.WEB.h264-TBS.1.59GB",
                        "size": "1.59GB",
                        "picture": "WEB-1080P",
                        "magnet": "magnet:?xt=urn:btih:d8daeb50f386f6d73566f05c11b1a207615e611b"
                    },
                    {
                        "episode": "1",
                        "title": "权力的游戏.第七季.第 01 集.Game.of.Thrones.S07E01.Dragonstone.REPACK.1080p.AMZN.WEBRip.DDP5.1.x264-GoT.3.51GB",
                        "size": "3.51GB",
                        "picture": "WEB-1080P",
                        "magnet": "magnet:?xt=urn:btih:5d78d13d072defffc1a5585e74ae700bcaa19178"
                    },
                    {
                        "episode": "2",
                        "title": "权力的游戏.第七季.第 02 集.Game.of.Thrones.S07E02.1080p.WEB.h264-TBS.1.54GB",
                        "size": "1.54GB",
                        "picture": "WEB-1080P",
                        "magnet": "magnet:?xt=urn:btih:f1ae422a7fe4000606ff82dcc6b9c7a97aac9671"
                    },
                    {
                        "episode": "2",
                        "title": "权力的游戏.第七季.第 02 集.Game.of.Thrones.S07E02.Stormborn.1080p.AMZN.WEBRip.DDP5.1.x264-GoT.3.57GB",
                        "size": "3.57GB",
                        "picture": "WEB-1080P",
                        "magnet": "magnet:?xt=urn:btih:4d246a2d1741d50f3abb7bbc4c81718a6eba2bb1"
                    },
                    {
                        "episode": "3",
                        "title": "权力的游戏.第七季.第 03 集.Game.of.Thrones.S07E03.1080p.WEB.h264-TBS.1.66GB",
                        "size": "1.66GB",
                        "picture": "WEB-1080P",
                        "magnet": "magnet:?xt=urn:btih:6770b65e52096a82d758cdd477334887883f5daf"
                    },
                    {
                        "episode": "3",
                        "title": "权力的游戏.第七季.第 03 集.Game.of.Thrones.S07E03.The.Queens.Justice.1080p.AMZN.WEBRip.DDP5.1.x264-GoT.4.24GB",
                        "size": "4.24GB",
                        "picture": "WEB-1080P",
                        "magnet": "magnet:?xt=urn:btih:e7c790d0164621fc1bfdec56898c52bc5065e76b"
                    },
                    {
                        "episode": "4",
                        "title": "权力的游戏.第七季.第 04 集.Game.of.Thrones.S07E04.1080p.WEB.h264-TBS.1.32GB",
                        "size": "1.32GB",
                        "picture": "WEB-1080P",
                        "magnet": "magnet:?xt=urn:btih:daf26f4404e2f8cdd5cdd8db96ae6e07bc42670c"
                    },
                    {
                        "episode": "4",
                        "title": "权力的游戏.第七季.第 04 集.Game.of.Thrones.S07E04.The.Spoils.of.War.1080p.AMZN.WEBRip.DDP5.1.x264-GoT.3.05GB",
                        "size": "3.05GB",
                        "picture": "WEB-1080P",
                        "magnet": "magnet:?xt=urn:btih:abc014971e2c429011371131d20516f28602e54b"
                    },
                    {
                        "episode": "5",
                        "title": "权力的游戏.第七季.第 05 集.Game.of.Thrones.S07E05.Eastwatch.1080p.AMZN.WEB-DL.DDP5.1.H.264-GoT.3.3GB",
                        "size": "3.3GB",
                        "picture": "WEB-1080P",
                        "magnet": "magnet:?xt=urn:btih:a5ad09c7e6b0a86e72ee6b65c9ecdc7b9fa371eb"
                    },
                    {
                        "episode": "5",
                        "title": "权力的游戏.第七季.第 05 集.Game.of.Thrones.S07E05.Eastwatch.1080p.AMZN.WEB-DL.DDP5.1.x264-GoT.3.3GB",
                        "size": "3.3GB",
                        "picture": "WEB-1080P",
                        "magnet": "magnet:?xt=urn:btih:b196a2e629cc97f793933aba4d31332d7b54ed11"
                    }
                ]
            },
            {
                "other": [
                    {
                        "episode": "0",
                        "title": "Game.Of.Thrones.S07E01.iNTERNAL.720p.HDTV.x264-TURBO[rarbg]",
                        "size": "1.1 GB",
                        "picture": "HDTV",
                        "magnet": "magnet:?xt=urn:btih:6e3d56245405a42668e8418984aed510d75f621f"
                    },
                    {
                        "episode": "1",
                        "title": "权力的游戏.第七季.第 01 集.Game.of.Thrones.S07E01.720p.HDTV.x264-AVS.961.07MB",
                        "size": "961.07MB",
                        "picture": "HDTV/HDRip/DVDRip",
                        "magnet": "magnet:?xt=urn:btih:843c17333bd03180f5f1b1d6d43a90a428d5c1fd"
                    },
                    {
                        "episode": "1",
                        "title": "权力的游戏.第七季.第 01 集.Game.Of.Thrones.S07E01.1080p.HDTV.x264-BATV.2.84GB",
                        "size": "2.84GB",
                        "picture": "HDTV/HDRip/DVDRip",
                        "magnet": "magnet:?xt=urn:btih:c9e54fd0d2825e8db0d844fd77228ca19ddbaf3e"
                    },
                    {
                        "episode": "2",
                        "title": "权力的游戏.第七季.第 02 集.Game.of.Thrones.S07E02.720p.HDTV.x264-AVS.928.13MB",
                        "size": "928.13MB",
                        "picture": "HDTV/HDRip/DVDRip",
                        "magnet": "magnet:?xt=urn:btih:392c9d6e6477372dd64d73431537fc87f03357d0"
                    },
                    {
                        "episode": "3",
                        "title": "权力的游戏.第七季.第 03 集.Game.of.Thrones.S07E03.720p.HDTV.x264-AVS.1.01GB",
                        "size": "1.01GB",
                        "picture": "HDTV/HDRip/DVDRip",
                        "magnet": "magnet:?xt=urn:btih:f151ad1c51290fe922aacaa33a879de031d90dec"
                    },
                    {
                        "episode": "4",
                        "title": "权力的游戏.第七季.第 04 集.Game.of.Thrones.S07E04.720p.HDTV.x264-AVS.1011.38MB",
                        "size": "1011.38MB",
                        "picture": "HDTV/HDRip/DVDRip",
                        "magnet": "magnet:?xt=urn:btih:b7921da89ac777ed959310a1a05ac334c30ad99c"
                    },
                    {
                        "episode": "5",
                        "title": "权力的游戏.第七季.第 05 集.Game.of.Thrones.S07E05.720p.HDTV.x264-AVS.959.97MB",
                        "size": "959.97MB",
                        "picture": "HDTV/HDRip/DVDRip",
                        "magnet": "magnet:?xt=urn:btih:aa130b5fe1dda7767649e1f3b7c4e077508a0c4b"
                    }
                ]
            }
        ]
    }
    

    rank-api:https://www.bt0.com/api/rank.php?douban_id=26235354

    返回数据示例:

    {
        "msg": "success",
        "rank": {
            "score": "9.7",
            "rating_people": "41557",
            "stars5": 37027,
            "stars4": 3532,
            "stars3": 664,
            "stars2": 124,
            "stars1": 207
        }
    }
    

    PS: 这个站点纯属为了避免一些小白踩坑,所有数据均来采集自公开数据,是国内类似站点的良心之作;道德卫士请礼貌地留下你的评论。

    12 条回复    2017-08-18 09:44:55 +08:00
    beyoung
        1
    beyoung  
    OP
       2017-08-16 23:08:18 +08:00
    另外求设计师给点意见
    LokiSharp
        2
    LokiSharp  
       2017-08-16 23:17:40 +08:00 via iPhone
    v2ex 禁止讨论盗版。。。So,磁力链最好别直接发出来。。。
    beyoung
        3
    beyoung  
    OP
       2017-08-16 23:27:21 +08:00
    @LokiSharp 为了展示接口反馈数据 就直接帖进来了
    HandSonic
        4
    HandSonic  
       2017-08-16 23:44:09 +08:00
    不知道这类型的站能活多久
    chinvo
        5
    chinvo  
       2017-08-16 23:52:30 +08:00
    @beyoung #3 你可以用假数据来展示效果
    RqPS6rhmP3Nyn3Tm
        6
    RqPS6rhmP3Nyn3Tm  
       2017-08-17 02:27:18 +08:00 via iPad
    提供 API 就危险了,怕出事
    beyoung
        7
    beyoung  
    OP
       2017-08-17 07:51:00 +08:00 via iPhone
    @BXIA 那 api 邪恶事情我还是再考虑考虑
    daocao
        8
    daocao  
       2017-08-17 10:05:36 +08:00
    新域名真丑,,,

    全球客服工单系统,反馈完毕
    beyoung
        9
    beyoung  
    OP
       2017-08-17 10:16:35 +08:00
    @daocao 那个是为了避避风头的 嘿嘿
    qianmaole
        10
    qianmaole  
       2017-08-18 09:28:36 +08:00
    呵呵呵呵呵呵呵呵呵呵
    beyoung
        11
    beyoung  
    OP
       2017-08-18 09:30:42 +08:00
    @qianmaole 我知道错了 老哥
    qianmaole
        12
    qianmaole  
       2017-08-18 09:44:55 +08:00
    @beyoung 老哥,你认错人了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2803 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 07:54 · PVG 15:54 · LAX 23:54 · JFK 02:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.