爱奇艺,优酷,腾讯,芒果VIP接口。测试一下都可以用,分享给大家

By | 2016 年 9 月 26 日

有朋友提到解析接口原理,我不懂PHP技术不够。也只能提供点网上找来的东西,让大神研究了分享给我们、分享一份芒果TV  VIP解析源码。希望大神研究给出分享。
<?php
/**
**
* 严重警告:
* 1、源码仅供学习交流使用。
* 2、禁止用于危害官方利益的行为。
* 3、禁止用于违反法律法规的行为。
*
*
*
*/
error_reporting(0);
header(‘Content-type: text/json;charset=utf-8’);

function http_curl($url){
$curl = curl_init();
curl_setopt($curl,CURLOPT_URL,$url);
curl_setopt($curl,CURLOPT_CONNECTTIMEOUT,30);
curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);
$response=curl_exec($curl);
curl_close($curl);
return $response;
}

function M3u8ToMp4($url){

$s = explode(‘&’,$url);
$f = explode(‘&file=’,$url);
$x = explode(‘/’,$f[1]);
$i = substr($x[5],0,-4);
$d = substr($x[5],-4);

if( $d=’_mp4′ ){
$mp4 = ‘.mp4’;
}else{
$mp4 = ‘.mp4′;
}

return $s[0].’&pno=1031&’.$s[2].’&limitrate=0&file=/’.$x[1].’/’.$x[2].’/’.$x[3].’/’.$x[4].’/’.$i.$mp4;

}

function SD($url){
$response = json_decode(http_curl($url),true);
return $response[‘info’];
}

function HD($url){
$response = json_decode(http_curl($url),true);
return $response[‘info’];
}

function UHD($url){
$response = json_decode(http_curl($url),true);
return $response[‘info’];
}

function unescape($j){
$k=””;
$l=0;
$m=strlen($j);
while($l<$m){
$n=substr($j,$l,1);
if($n==’%’){
$l++;
$n=substr($j,$l,1);
if($n==’u’){
$l++;
$o=substr($j,$l,4);
$p=hexdec($o);
$q=”&#”.$p.’;’;
$k.=utf8_encode($q);
$l+=4;
}else{
$r=substr($j,$l,2);
$k.=chr(hexdec($r));
$l+=2;
}
}else{
$k.=$n;
$l++;
}
}
return $k;
}

$m = json_decode(http_curl(“http://v.api.mgtv.com/player/video?video_id=”.$_GET[‘vid’]),true);

$data = array(
‘info’ => array(
‘category’ => $m[‘data’][‘info’][‘root_name’],
‘category_name’ => $m[‘data’][‘info’][‘collection_name’],
‘title’ => $m[‘data’][‘info’][‘title’],
‘sub_title’ => $m[‘data’][‘info’][‘sub_title’],
‘series’ => $m[‘data’][‘info’][‘series’],
‘url’ => $m[‘data’][‘info’][‘url’],
‘thumb’ => $m[‘data’][‘info’][‘thumb’],
‘desc’ => $m[‘data’][‘info’][‘desc’],
‘icon’ => $m[‘data’][‘info’][‘icon’] ? ‘vip’ : null,
),
‘video’ => array(
‘mp4’ => array(
‘SD’ => SD(M3u8ToMp4(unescape($m[‘data’][‘stream’][0][‘url’]))),
‘HD’ => HD(M3u8ToMp4(unescape($m[‘data’][‘stream’][1][‘url’]))),
‘UHD’ => UHD(M3u8ToMp4(unescape($m[‘data’][‘stream’][2][‘url’])))
),
‘m3u8’ => array(
‘SD’ => SD(unescape($m[‘data’][‘stream’][0][‘url’])),
‘HD’ => HD(unescape($m[‘data’][‘stream’][1][‘url’])),
‘UHD’ => UHD(unescape($m[‘data’][‘stream’][2][‘url’]))
)
),
‘frame_image’ => $m[‘data’][‘frame’][‘images’],
‘next’ => $m[‘data’][‘next’]
);

if ( $m[‘data’] ){
$printr = array(‘status’ => ‘200’, ‘msg’ => ‘success’, ‘data’ => $data);
} else {
$printr = array(‘status’ => ‘0’, ‘msg’ => ‘ㄟ( ▔, ▔ )ㄏ,参数错误’);
}

$video_data = json_decode(json_encode($printr),true);
header(“Location:”.$video_data[‘data’][‘video’][‘mp4’][‘UHD’]);
exit;
?>

免费版万能最新接口:http://mfjx.jiuli8.com/?url=
免费优酷高清接口:http://vip.jiuli8.com/ykvip.php?url=
免费芒果VIP高清接口:http://vip.jiuli8.com/mgvip.php/?url=
免费腾讯VIP专用接口:http://yun.jiuli8.com/qqvip.php?url=
免费优酷云解析接口:http://ykyun.jiuli8.com/?v

万能http://live.qqdzz.com/free.php?url=

爱奇艺http://live.qqdzz.com/qiyi.php?url=

百度http://baidu598.com/ckflv.php?vid=这里是c值&type=mp4

http://dy.jiuli8.com/yunparse/index.php?url=

http://lklhd.top/?url=

http://www.200919.com/tv/v.php?url=

http://vip.wanwantv.com/yunparse/?url=

http://mfjx.jiuli8.com/?url=

http://live.qqdzz.com/free.php?url=

http://vip.jiuli8.com/ykvip.php?url=

http://live.qqdzz.com/qiyi.php?url=

http://vip.jiuli8.com/mgvip.php/?url=

http://yun.jiuli8.com/qqvip.php?url=
如果可以用,加点分,没必要用E写个什么软件,跳转,直接分享地址多简单。

好吧  有不会用的,普及一下,接口+爱奇艺(优酷,芒果)播放页面地址。

http://dy.jiuli8.com/yunparse/index.php?url= 爱奇艺播放页面地址http://www.iqiyi.com/v_19rrm3u0d … 4411b#vfrm=19-9-0-1  就能观看VIP电影。

有部分有广告,可以尝试更换接口,加载失败的 也可以尝试更换接口

发表评论

电子邮件地址不会被公开。 必填项已用*标注