各大视频网站m3u8无水印抓取方法

腾讯视频
可直接将这个超链接拖入你的书签栏:腾讯视频

javascript:var a=prompt(PLAYER._DownloadMonitor.context.dataset.title,PLAYER._DownloadMonitor.context.dataset.ckc?PLAYER._DownloadMonitor.context.dataset.currentVideoUrl:PLAYER._DownloadMonitor.context.dataset.currentVideoUrl.replace(/:.*qq.com/g,"://defaultts.tc.qq.com/defaultts.tc.qq.com"));

腾讯视频(DRM内容)
可直接将这个超链接拖入你的书签栏:腾讯视频(DRM内容)

javascript:var m3u8Content=PLAYER._DownloadMonitor.context.dataset.playList[0].m3u8;var blob=new Blob([m3u8Content],{type:"text/plain"});var url=URL.createObjectURL(blob);var title=PLAYER._DownloadMonitor.context.dataset.title+"[v+a].m3u8";var aLink=document.createElement("a");aLink.href=url;aLink.download=title;aLink.style.display="none";var event;if(window.MouseEvent){event=new MouseEvent("click")}else{event=document.createEvent("MouseEvents");event.initMouseEvent("click",true,false,window,0,0,0,0,0,false,false,false,false,0,null)}aLink.dispatchEvent(event);

优酷视频
可直接将这个超链接拖入你的书签栏:优酷视频

javascript:var url;var size=0;Array.from(videoPlayer.getData()._playlistData.stream).forEach(function(element,index,array){if(element.audio_lang==videoPlayer.getConfig().language&&element.size>size){url=element.m3u8_url;size=element.size}});/*nilaoda*/var a=prompt(videoPlayer.getData()._videoData.title+"_"+videoPlayer.getConfig().language+"_"+(size/1024/1024).toFixed(2)+"MB",url);

补充说明 (20200223):
目前部分优酷视频使用了其自有Copyright DRM加密,使用本软件2.5.0及以上版本可以解密。使用以下JS获取专用解密KEY

javascript:var a=prompt(videoPlayer.getData()._videoData.title + "key", btoa(String.fromCharCode.apply(null, ____hexA)));

爱奇艺/愛奇藝视频
可直接将这个超链接拖入你的书签栏:爱奇艺视频

javascript:try{var info=playerObject._player._core._movieinfo.originalData.data.program.video;info.forEach(function(item,index){if(item._selected){var m3u8Content="";if(item.m3u8==undefined){try{if(typeof(eval(cmd5x))=="function"){}}catch(e){var req1=new XMLHttpRequest();req1.open("GET","https://static.iqiyi.com/js/common/f6a3054843de4645b34d205a9f377d25.js",false);req1.onload=function(){var script=document.createElement("script");script.text=req1.responseText;document.getElementsByTagName("head")[0].appendChild(script)};req1.send(null)}var fs=item.fs;var content="#EXTM3U\n";fs.forEach(function(fs_i,fs_index){var url=fs_i.l;var prefix="https://data.video.iqiyi.com/videos";var api=prefix+url;try{var t=playerObject._player._core._movieinfo.originalData.data.boss.data.t;api=prefix+url+"&cross-domain=1&t="+t+"&QY00001="+/qd_uid=(\d+)/g.exec(url)[1]+"&ib=4&ptime=0&ibt="+cmd5x(t+/\/(\w{10,})/g.exec(url)[1])}catch(err){}var req=new XMLHttpRequest();req.overrideMimeType("application/json");req.open("GET",api,false);req.onload=function(){var jsonResponse=JSON.parse(req.responseText);content+="#EXTINF:0\n"+jsonResponse["l"]+"\n"};req.send(null)});content+="#EXT-X-ENDLIST";m3u8Content=content}else{m3u8Content=item.m3u8}var blob=new Blob([m3u8Content],{type:"text/plain"});var url=URL.createObjectURL(blob);var title=(document.title.indexOf("-")!=-1?document.title.substring(0,document.title.indexOf("-")):document.title.replace(/\s/,""))+"_"+item.scrsz+"_"+(item.code==2?"H264":"H265")+"_"+document.getElementsByClassName("iqp-time-dur")[0].innerText.replace(/:/,".")+"_"+(item.vsize/1024/1024).toFixed(2)+"MB.m3u8";var aLink=document.createElement("a");aLink.href=url;aLink.download=title;aLink.style.display="none";var event;if(window.MouseEvent){event=new MouseEvent("click")}else{event=document.createEvent("MouseEvents");event.initMouseEvent("click",true,false,window,0,0,0,0,0,false,false,false,false,0,null)}aLink.dispatchEvent(event)}})}catch(err){var info1=playerObject._player.package.engine.adproxy.engine.movieinfo.vidl;info1.forEach(function(item1,index1){if(item1.responseData!=undefined){var info=item1.responseData.data.program.video;info.forEach(function(item,index){if(item._selected){var m3u8Content="";if(item.m3u8==undefined){try{if(typeof(eval(cmd5x))=="function"){}}catch(e){var req1=new XMLHttpRequest();req1.open("GET","https://static.iqiyi.com/js/common/f6a3054843de4645b34d205a9f377d25.js",false);req1.onload=function(){var script=document.createElement("script");script.text=req1.responseText;document.getElementsByTagName("head")[0].appendChild(script)};req1.send(null)}var fs=item.fs;var content="#EXTM3U\n";fs.forEach(function(fs_i,fs_index){var url=fs_i.l;var prefix="https://data.video.iqiyi.com/videos";var api=prefix+url;try{var t=playerObject._player.package.engine.adproxy.engine.movieinfo.current.boss.data.t;api=prefix+url+"&cross-domain=1&t="+t+"&QY00001="+/qd_uid=(\d+)/g.exec(url)[1]+"&ib=4&ptime=0&ibt="+cmd5x(t+/\/(\w{10,})/g.exec(url)[1])}catch(err){console.error(err)}var req=new XMLHttpRequest();req.overrideMimeType("application/json");req.open("GET",api,false);req.onload=function(){var jsonResponse=JSON.parse(req.responseText);content+="#EXTINF:0\n"+jsonResponse["l"]+"\n"};req.send(null)});content+="#EXT-X-ENDLIST";m3u8Content=content}else{m3u8Content=item.m3u8}var blob=new Blob([m3u8Content],{type:"text/plain"});var url=URL.createObjectURL(blob);var title=(document.title.indexOf("-")!=-1?document.title.substring(0,document.title.indexOf("-")):document.title.replace(/\s/,""))+"_"+item.scrsz+"_"+(item.code==2?"H264":"H265")+"_"+document.getElementsByClassName("iqp-time-dur")[0].innerText.replace(/:/,".")+"_"+(item.vsize/1024/1024).toFixed(2)+"MB.m3u8";/*nilaoda*/var aLink=document.createElement("a");aLink.href=url;aLink.download=title;aLink.style.display="none";var event;if(window.MouseEvent){event=new MouseEvent("click")}else{event=document.createEvent("MouseEvents");event.initMouseEvent("click",true,false,window,0,0,0,0,0,false,false,false,false,0,null)}aLink.dispatchEvent(event)}})}})}

爱奇艺/愛奇藝 杜比音轨
可直接将这个超链接拖入你的书签栏:爱奇艺杜比音轨

javascript:eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3 B=A 1k();B.1j("1h","R://2I.M.C/1c/1Q/2b.1c",9);B.1b=7(){3 a=6.Q("19");a.1m=B.Z;6.V("U")[0].S(a)};B.18(z);7 G(a){3 b=6.2S.14("; ");1K(3 i=0;i35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3 j=k 1e();j.1E("1J","S://14.y.x/N/1K/1W.N",7);j.11=6(){3 a=5.w("E");a.z=j.2i;5.L("F")[0].B(a)};j.1f(9);6 m(a){3 b=5.1P.G("; ");1Y(3 i=0;i

爱奇艺/愛奇藝 4K H265
可直接将这个超链接拖入你的书签栏:爱奇艺4K_H265

javascript:eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3 9=j 1c();9.1C("1H","R://13.x.w/M/1I/1U.M",6);9.10=5(){3 a=4.v("D");a.y=9.2g;4.K("E")[0].A(a)};9.1e(8);5 l(a){3 b=4.1N.F("; ");1W(3 i=0;i

爱奇艺/愛奇藝 1080P H265 (低码)
可直接将这个超链接拖入你的书签栏:爱奇艺1080P_H265(低码)

javascript:eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3 9=j 1c();9.1C("1H","R://13.x.w/M/1I/1U.M",6);9.10=5(){3 a=4.v("D");a.y=9.2g;4.K("E")[0].A(a)};9.1e(8);5 l(a){3 b=4.1N.F("; ");1W(3 i=0;i

爱奇艺/愛奇藝 1080P H265 (中码)
可直接将这个超链接拖入你的书签栏:爱奇艺1080P_H265(中码)

javascript:eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3 9=j 1c();9.1C("1H","R://13.x.w/M/1I/1U.M",6);9.10=5(){3 a=4.v("D");a.y=9.2g;4.K("E")[0].A(a)};9.1e(8);5 l(a){3 b=4.1N.F("; ");1W(3 i=0;i

爱奇艺/愛奇藝 1080P_高帧率
可直接将这个超链接拖入你的书签栏:爱奇艺1080P_高帧率

javascript:eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3 7=8 U();7.V("W","y://X.t.u/z/Y/Z.z",5);7.10=6(){3 a=4.v("A");a.B=7.11;4.C("D")[0].E(a)};7.12(9);6 k(a){3 b=4.13.F("; ");14(3 i=0;i

芒果TV
可直接将这个超链接拖入你的书签栏:芒果TV

javascript:try{prompt(MGTVPlayer.VIDEOINFO.title,MGTVPlayer.playerNaNs.sourceInfo.info)}catch(err){var blob=new Blob([MGTVPlayer.playerNaNs.fakeMasterPlaylist],{type:"text/plain"});var url=URL.createObjectURL(blob);var title=MGTVPlayer.VIDEOINFO.title+".m3u8";var aLink=document.createElement("a");aLink.href=url;aLink.download=title;aLink.style.display="none";var event;if(window.MouseEvent){event=new MouseEvent("click")}else{event=document.createEvent("MouseEvents");event.initMouseEvent("click",true,false,window,0,0,0,0,0,false,false,false,false,0,null)}aLink.dispatchEvent(event)}

搜狐视频
可直接将这个超链接拖入你的书签栏:搜狐视频

javascript:var dur=document.getElementsByClassName("x-time-duration")[0].innerText;var ti=document.getElementById("vinfobox").getElementsByTagName("h2")[0].innerText;var dfn=document.getElementsByClassName("x-resolution-btn")[0].innerText;var content="#EXTM3U\n";_player.p2pkernel.dispatchUrlArr.forEach(function(item,index){var url=item["0"];$.ajaxSettings.async=false;$.get(url,function(data,status){content+="#EXTINF:0\n"+data["servers"][0]["url"]+"\n"});$.ajaxSettings.async=true});content+="#EXT-X-ENDLIST";var blob=new Blob([content],{type:"text/plain"});var url=URL.createObjectURL(blob);var aLink=document.createElement("a");aLink.href=url;aLink.download=ti+"_"+dfn+"_"+dur.replace(/:/,".")+".m3u8";/*nilaoda*/aLink.style.display="none";var event;if(window.MouseEvent){event=new MouseEvent("click")}else{event=document.createEvent("MouseEvents");event.initMouseEvent("click",true,false,window,0,0,0,0,0,false,false,false,false,0,null)}aLink.dispatchEvent(event)

爱奇艺字幕下载
可直接将这个超链接拖入你的书签栏:爱奇艺字幕

javascript:var tvid=playerObject._player.package.engine.adproxy.engine.movieinfo.tvid;var oData=playerObject._player.package.engine.adproxy.engine.episode.EpisodeStore[tvid].movieInfo.originalData;var prefix=oData.data.dstl;var subUrl=oData.data.program.stl[0].webvtt;var title=(document.title.indexOf("-")!=-1?document.title.substring(0,document.title.indexOf("-")):document.title.replace(/\s/,""));prompt(title+" [webvtt]",prefix+subUrl);

Wetv 字幕下载
可直接将这个超链接拖入你的书签栏:Wetv字幕

javascript:eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('!6(){G{17(15(13(2))=="6"){}}12(e){4 c=u x();c.9("h","i://j.k.l/2/3.0.1/11/Q/2.q",r);c.s=6(){4 a=5.v("P");a.K="y/q";a.W=c.A;5.B("C")[0].p(a)};c.E(D);4 d=u x();d.9("h","i://j.k.l/2/3.0.1/2.H.I",r);d.s=6(){4 a=5.v("J");a.y=d.A;5.B("C")[0].p(a)};d.E(D)};4 f=5.L("M N O")[0].w;4 g="";R.S.T.U.V.F.X(6(a,b){g+=\'\'+a.o+"  "+a.m+"  "+a.t+\'\\n\'});2.9({w:"字幕下载",16:""+f+""+g,18:19});g=""}();',62,72,'||layer||var|document|function|_|br|open||||||||GET|https|cdn|bootcss|com|id||langName|appendChild|css|false|onload|lang|new|createElement|title|XMLHttpRequest|text|strong|responseText|getElementsByTagName|head|null|send|list|try|min|js|script|type|getElementsByClassName|video_episode|flex_center|video_current|style|default|PLAYER|_DownloadMonitor|context|dataset|subtitleList|innerText|forEach|href|url|download|skin|catch|eval|srt|typeof|content|if|maxWidth|260'.split('|'),0,{}))

VIKI
可直接将这个超链接拖入你的书签栏:VIKI下载

javascript:eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('!6(){U{V(X(Y(4))=="6"){}}Z(e){5 c=l m();c.h("n","o://p.q.r/4/3.0.1/10/11/4.t",u);c.v=6(){5 a=7.w("8");a.12="x/t";a.y=c.z;13.14("15",a.y);7.A("B")[0].C(a)};c.D(E);5 d=l m();d.h("n","o://p.q.r/4/3.0.1/4.16.17",u);d.v=6(){5 a=7.w("18");a.x=d.z;7.A("B")[0].C(a)};d.D(E)};5 f=7.F.i(/\\W-.*/,\'\');5 g="";G.9.9.H.I.J.K.19.1a(6(a,b){g+=\'\'+a.P.i(/\\W(.*)   \'+(b%2!=0?\'\':\'\')});4.h({F:"1d下载",1e:""+f+""+\'&1g;[T地址]\'+g+"",1j:1k});g=""}();',62,83,'||||layer|var|function|document|style|player||||||||open|replace|color|emsp|new|XMLHttpRequest|GET|https|cdn|bootcss|com||css|false|onload|createElement|text|innerText|responseText|getElementsByTagName|head|appendChild|send|null|title|html5player|player_|customSubtitle|options_|playerOptions|2e8ded|href|src|download|label|br|div|strong|m3u8|try|if||typeof|eval|catch|skin|default|type|localStorage|setItem|layerCSS|min|js|script|sortedSubtitles|forEach|_|vtt|VIKI|content|black|nbsp|sources|hr|maxWidth|370'.split('|'),0,{}))

OnDemandChina Master m3u8
适用于 OnDemandChina(Old)
可直接将这个超链接拖入你的书签栏:OnDemandChina下载

javascript:var url=this.myPlayer.dash.playlists.srcUrl;var title=(document.title.indexOf("-")!=-1?document.title.substring(0,document.title.indexOf("-")):document.title.replace(/\s/,""));prompt(title+" [master]",url);

OnDemandChina 字幕 m3u8
可直接将这个超链接拖入你的书签栏:OnDemandChina字幕

javascript:var url;var subs=this.myPlayer.dash.playlists.master.mediaGroups.SUBTITLES["subtitles-0"];var title=(document.title.indexOf("-")!=-1?document.title.substring(0,document.title.indexOf("-")):document.title.replace(/\s/,""));for(var p in subs){if(subs[p]["default"]) url=subs[p]["uri"];};if(url)prompt(title+" [default subtitle]",url);

NAVER TV
可直接将这个超链接拖入你的书签栏:NAVER TV m3u8

javascript:prompt(document.title,WrapPlayer.rmcPlayer.core.model.currentVideo.source);

给TA打赏
共{{data.count}}人
人已打赏
技术文档

PHP简单的Curl的Get请求和Curl的Post请求和file_get_contents的Get请求获取接口JSON数据

2020-2-25 1:07:52

技术文档

一键检测Linux VPS/服务器配置、IO、国内节点下载测速

2020-3-22 0:10:30

5 条回复 A文章作者 M管理员
  1. 轨迹

    你好,大佬 有没有像这样的解析视频接口出来使用还有应用

  2. 轨迹

    大佬,像这样的网页不加密,可是这部剧TV加密,关键是TV有HBR可以下载

  3. 优酷的解密key获取了怎么使用

  4. 本软件是哪个软件?

个人中心
有新私信 私信列表
搜索