准备

打开一个目标(斗鱼)视频的网页,在当前页面进入开发者工具的"Network"
点击监听按钮旁边的搜索按钮调出左边的搜索界面。

清零

先关闭监听状态,清除抓到的数据,再开启监听。

抓包

刷新网页,等待网页加载完毕后关闭监听状态。

搜索

来到左边的搜索界面,搜索 “m3u8” 。

分析

从得到的搜索结果来看,
前11项为视频片段(.ts文件)的请求,
第12项为m3u8的请求,这个文件相当于视频片段(.ts文件)清单
第13项为一个post获取m3u8地址的请求,如图所见。
01.webp

得到返回的json文本

{
"error":0,
"data":{
    "timestamp":7200,
    "thumb_video":{
        "high":{
            "url":"https://play-tx-recpub.douyucdn2.cn/wsd-tx-rec-pub/record/HLS/live-288016rlols5_2010/288016rlols5-2010-1610276828.m3u8?tlink=6022fbcd&tplay=6023886d&exper=0&nlimit=5&us=afa201da74fcc295d4ef528c21121501&sign=5509ebfd9ab8f4a82b545e3af3048bf5&u=121610897&d=afa201da74fcc295d4ef528c21121501&ct=web&vid=18250951&pt=2&cdn=tx"
        },
        "normal":{
            "url":"https://play-tx-recpub.douyucdn2.cn/wsd-tx-rec-pub/record/HLS/live-288016rlols5_1510/288016rlols5-1510-1610276859.m3u8?tlink=6022fbcd&tplay=6023886d&exper=0&nlimit=5&us=afa201da74fcc295d4ef528c21121501&sign=81bfb94aae7731f1881a963636617a13&u=121610897&d=afa201da74fcc295d4ef528c21121501&ct=web&vid=18250951&pt=2&cdn=tx"
        },
        "super":{
            "url":"https://play-tx-recpub.douyucdn2.cn/wsd-tx-rec-pub/record/HLS/live-288016rlols5_3980/288016rlols5-3980-1610276828.m3u8?tlink=6022fbcd&tplay=6023886d&exper=0&nlimit=5&us=afa201da74fcc295d4ef528c21121501&sign=bf74dcb48a1644b287760e57d5625057&u=121610897&d=afa201da74fcc295d4ef528c21121501&ct=web&vid=18250951&pt=2&cdn=tx"
        }
    },
    "p2pmeta":{
        "p2p":0
    }
}}

high 可能指高清
normal 可能指超清
super 可能指原画

下载

https://play-tx-recpub.douyucdn2.cn/wsd-tx-rec-pub/record/HLS/live-288016rlols5_3980/288016rlols5-3980-1610276828.m3u8?tlink=6022fbcd&tplay=6023886d&exper=0&nlimit=5&us=afa201da74fcc295d4ef528c21121501&sign=bf74dcb48a1644b287760e57d5625057&u=121610897&d=afa201da74fcc295d4ef528c21121501&ct=web&vid=18250951&pt=2&cdn=tx

这里就用super的url放入m3u8工具中下载,如图
02.webp

最后

大功告成!!
m3u8下载工具:imcry.lanzouw.com/icnMrlizpdc

最后修改:2025 年 01 月 21 日
如果觉得我的文章对你有用,请随意赞赏