简单四步抓取腾讯视频MP4文件.webp


简单四步抓取腾讯视频MP4文件

可乐云小站(https://www.kljs6.com)原创首发

可乐今天因为在校因为有同学想下载一个视频用作视频制作,于是我知道原来他找的视频是腾讯视频里面的,而我们也知道腾讯视频.qlv加密格式很难以破解,于是我决定下定决心找找还有没有更简单的方法下载原视频!

最后终于经过几个小时的不懈努力,终于找到了已知的一个简单的方法来下载腾讯视频里面的视频,而且仅仅只有4个步骤,那么我们话不多说,教程开始!


1.获取视频播放页地址,如:https://v.qq.com/x/page/t3056pm287p.html


2.视频正片开播后,在H5播放器的右键菜单中选择“复制调试信息”
注意,一定要是H5播放器!不是Flash播放器!
复制出来的信息如下:
{"pid":"6bc6a438259d273ec7bedcb44f49dad3","url":"https%3A%2F%2Fv.qq.com%2Fx%2Fpage%2Ft3056pm287p.html","vid":"t3056pm287p","version":"3.5.57","platform":"10201","playtype":3,"emsg2":"%7B%22flow%22%3A%5B%221618447990412%20getinfo%20ok%20265%22%5D%7D","id":"","action":"//btrace.qq.com/kvcollect?BossId=4372&Pwd=967411786","getinfo":"%2F%2Fvd.l.qq.com%2Fproxyhttp%2Fvinfoad%26spsrt%3D1%26charge%3D0%26defaultfmt%3Dauto%26otype%3Dojson%26guid%3D7b0b74ada706bd38df01ba9d40a65c5f%26flowid%3D6bc6a438259d273ec7bedcb44f49dad3_10201%26platform%3D10201%26sdtfrom%3Dv1010%26defnpayver%3D1%26appVer%3D3.5.57%26host%3Dv.qq.com%26ehost%3Dhttps%253A%252F%252Fv.qq.com%252Fx%252Fpage%252Ft3056pm287p.html%26refer%3Dv.qq.com%26sphttps%3D1%26tm%3D1618447990%26spwm%3D4%26logintoken%3D%257B%2522main_login%2522%253A%2522qq%2522%252C%2522openid%2522%253A%25228EF8827AB06DD147B74D00A5E836866A%2522%252C%2522appid%2522%253A%2522101483052%2522%252C%2522access_token%2522%253A%2522243CE0D9A24A470D1788590316A92532%2522%252C%2522vuserid%2522%253A%2522822783224%2522%252C%2522vusession%2522%253A%252237XwaVQXFuMxz-trKjGSrQ..%2522%257D%26vid%3Dt3056pm287p%26defn%3Dfhd%26fhdswitch%3D0%26show1080p%3D1%26isHLS%3D1%26dtype%3D3%26sphls%3D2%26spgzip%3D1%26dlver%3D2%26drm%3D32%26hdcp%3D0%26spau%3D1%26spaudio%3D15%26defsrc%3D2%26encryptVer%3D9.1%26cKey%3D3U7B9C8Rje57-ZEItZs_lpJX5WB4a2CdS8kFNFEtVaqtHEZQ1c_W6myJ8hQZnWDEG4BzSZ3MKjsx2vPBr-xE-uhvZyEMY131vUh1H5luGHfrYcFPrjHrI-AlnAgo9r1rpC8pTw4NTYbYxbsCWjfMEMlPx3OXil-Px4qI-ZMOJR7_qDhELyZ5C4rFL0K_gMo_AKPcJa9KULXRUNvtjUtnAFLIzZVUEz9Bq5Q_4F1iOOI3kpVI6fAuwT4l88imbqaF2i6xH6mDkyNG871kfB1QuCQOonQc0RtUHYkIElze6mfJs_LJ1hCvNmt0BgYGBgYGK9tUsQ%26fp2p%3D1%26spadseg%3D3","getkey":"","uin":"149749000","ua":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/86.0.4240.198 Safari/537.36","refer":"https://v.qq.com/x/page/t3056pm287p.html","pvid":"6710130612","sessionid":"","main_login":"qq","vuserid":"","openid":"","appid":"","vurl":"https%3A%2F%2Fugcbsy.qq.com%2FuwMROfz2r5xkIaQXGdGnC2dfJ7EmhXryHGIz6XK2Pp2PckPR%2Ft3056pm287p.p709.1.mp4%3Fsdtfrom%3Dv1010%26guid%3D7b0b74ada706bd38df01ba9d40a65c5f%26vkey%3D73377F4793FCABE051E3F9F0122DDF0522E1B337AC29AF3FA99F38ED1BF6B084790100728BEB0417AB4A4A91FFAC1A8B8504F72D248C7AC2F616EF3714CCBE4D0FB0BD1F0C05BAF1325BEC9620CD59DE92F880E672437E9C9D745EC87784EF8E666AC5E7C659FDA8528E21D16738A4F2ADF1BA52B52EC4B6A462A2A3586ED738","cid":"","now":"2021-04-15 08:54:57","defn":"fhd","uid":"7b0b74ada706bd38df01ba9d40a65c5f"}

找到vurl节点,它后面的值就是视频的真实下载地址了。

3.发现URL中有带%编码的字符,将它们转化成ASCII字符
字符转换表参见:
http://www.w3school.com.cn/tags/html_ref_urlencode.html
需要用到的常用字符有:
%3A -> :
%2F -> /
%3F -> ?
%3D -> =
%26 -> &
上述视频地址转化后变成:
https://ugcbsy.qq.com/uwMROfz2r5xkIaQXGdGnC2dfJ7EmhXryHGIz6XK2Pp2PckPR/t3056pm287p.p709.1.mp4?sdtfrom=v1010&guid=7b0b74ada706bd38df01ba9d40a65c5f&vkey=73377F4793FCABE051E3F9F0122DDF0522E1B337AC29AF3FA99F38ED1BF6B084790100728BEB0417AB4A4A91FFAC1A8B8504F72D248C7AC2F616EF3714CCBE4D0FB0BD1F0C05BAF1325BEC9620CD59DE92F880E672437E9C9D745EC87784EF8E666AC5E7C659FDA8528E21D16738A4F2ADF1BA52B52EC4B6A462A2A3586ED738


4.在浏览器里打开上述转换后的地址,然后在播放器的右键菜单里选择“视频另存为...”,就可以把视频的MP4文件保存下来了


注意事项

因为视频的特殊性,转化后的链接仅仅只有24小时的期限可以正常播放使用,所以请及时自行保存使用!


以上教程仅供学习参考,请勿用作违法违规用途
可乐云小站首发教程(https://www.kljs6.com

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