天天看點

B站最新視訊下載下傳連結的擷取

B站最新視訊下載下傳連結的擷取

之前直接用的工具,發現21年的視訊不能下載下傳,得,還得自己分析一下

本文隻講方法,不提供工具,僅供學術研究~

1.擷取視訊的AID和CID

B站AID和CID的擷取的本質(直接搜CID更友善)

B站最新視訊下載下傳連結的擷取

偷懶工具:

B站最新視訊下載下傳連結的擷取

2.解析視訊

替換AID和CID:

https://api.bilibili.com/x/player/playurl?avid={1}&cid={2}&qn=1&type=&otype=json&platform=html5&high_quality=1

通過浏覽器拿到傳回值:

{"code":0,"message":"0","ttl":1,"data":{"from":"local","result":"suee","message":"","quality":192,"format":"mp4720","timelength":3045000,"accept_format":"mp4720","accept_description":["高清 720P"],"accept_quality":[192],"video_codecid":7,"seek_param":"start","seek_type":"offset","durl":[{"order":1,"length":3045000,"size":716993619,"ahead":"","vhead":"","url":"https://upos-sz-mirrorcos.bilivideo.com/upgcxcode/02/15/315891502/315891502-1-192.mp4?e=ig8euxZM2rNcNbNz7WdVhwdlhbhBhwdVhoNvNC8BqJIzNbfq9rVEuxTEnE8L5F6VnEsSTx0vkX8fqJeYTj_lta53NCM=\u0026uipk=5\u0026nbs=1\u0026deadline=1642306699\u0026gen=playurlv2\u0026os=cosbv\u0026oi=3748392193\u0026trid=6b16b2feeedb48d5b448d8373e20367bT\u0026platform=html5\u0026upsig=bf7ce69d2e89bcbda89406bb8bd26fc1\u0026uparams=e,uipk,nbs,deadline,gen,os,oi,trid,platform\u0026mid=0\u0026bvc=vod\u0026nettype=0\u0026bw=235465\u0026orderid=0,1\u0026logo=80000000","backup_url":null}],"support_formats":[{"quality":192,"format":"mp4720","new_description":"720P 高清","display_desc":"720P","superscript":""}],"high_format":null}}
           

3.通路下載下傳

隻需要url裡面的值,然後把轉義字元

\u0026

還原成

&

https://upos-sz-mirrorcos.bilivideo.com/upgcxcode/02/15/315891502/315891502-1-192.mp4?e=ig8euxZM2rNcNbNz7WdVhwdlhbhBhwdVhoNvNC8BqJIzNbfq9rVEuxTEnE8L5F6VnEsSTx0vkX8fqJeYTj_lta53NCM=&uipk=5&nbs=1&deadline=1642306699&gen=playurlv2&os=cosbv&oi=3748392193&trid=6b16b2feeedb48d5b448d8373e20367bT&platform=html5&upsig=bf7ce69d2e89bcbda89406bb8bd26fc1&uparams=e,uipk,nbs,deadline,gen,os,oi,trid,platform&mid=0&bvc=vod&nettype=0&bw=235465&orderid=0,1&logo=80000000
           

打開就可以下載下傳視訊了:

B站最新視訊下載下傳連結的擷取

4.測試

随便點個2022的視訊也是可以的:

B站最新視訊下載下傳連結的擷取
B站最新視訊下載下傳連結的擷取

作者:毒逆天

出處:https://www.cnblogs.com/dotnetcrazy

打賞:

18i4JpL6g54yAPAefdtgqwRrZ43YJwAV5z

本文版權歸作者和部落格園共有。歡迎轉載,但必須保留此段聲明,且在文章頁面明顯位置給出原文連接配接!