分享一个根据豆瓣 id 查询磁力资源的 api

2017-08-12 21:31:28 +08:00
 beyoung

http://bttt.gq/api/torrent.php?douban_id=26235354

目前第一版只接受豆瓣 id (豆瓣影片 url 的数字部分,如 https://movie.douban.com/subject/26235354/ 中的 26235354 ),接下来还会接受 imdb 的 tt 值

返回的数据如下(资源分类已经做了处理,720p/1080p/蓝光 /3d/其他 5 大类):

{
    "msg": "success",
    "count": 22,
    "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"
                }
            ]
        },
        {
            "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"
                }
            ]
        },
        {
            "other": [
                {
                    "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"
                }
            ]
        }
    ]
}

有需要的可以拿去做成油猴脚本玩玩

PS:这个站点数据正在全面开放磁力 api,预计一到两天内完成

6402 次点击
所在节点    分享创造
16 条回复
zuolan
2017-08-12 22:13:36 +08:00
不错啊,磁力链数据从哪里来的?
beyoung
2017-08-12 22:18:58 +08:00
@zuolan 目前磁力数据还不完整 有个大站的数字在进行二次处理 大概几天能处理优化完吧
cokilee
2017-08-12 22:21:07 +08:00
刚在推上看到这贴子......
fox0001
2017-08-12 22:22:37 +08:00
老司机开车~大家快上车
beyoung
2017-08-12 22:28:07 +08:00
@cokilee 不会吧。。。推特?
loading
2017-08-12 22:29:11 +08:00
“豆瓣电影助手” chrome。
感觉就像豆瓣提供一样。
cokilee
2017-08-12 23:11:35 +08:00
@beyoung 是的,一个叫 just4v2ex 的用户分享的,看了下,貌似这个用户是专职将 v2 上的帖子转到推上的。
popok
2017-08-13 10:05:02 +08:00
我猜是 bt0
beyoung
2017-08-13 10:41:10 +08:00
@popok 对呀!
wuhaoworld
2017-08-13 12:01:12 +08:00
jorb
2017-08-14 10:16:41 +08:00
有限制嘛,多刷了几下,全 503 了
cojing
2017-08-15 23:52:42 +08:00
挂了 QAQ
beyoung
2017-08-16 09:29:45 +08:00
@cojing 使用 https
kslr
2017-09-05 11:37:42 +08:00
已经关闭咯
beyoung
2017-09-05 13:54:04 +08:00
@kslr 又换到了 http
beyoung
2017-09-05 13:54:49 +08:00
@kslr 域名改为 bt0.com

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/382490

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX