[rihide]
<?php
/**
* @代码开源,透明,请勿用于商业用途,完全开源模式,供大家一起探讨研究
*
* @注释 要主播在线才可以
*
* @调用举例:http://域名/huya.php?url=https://www.huya.com/659241
* @author www.5mrk.com
* @copyright 2020-06-14
* @version 0.0.1
*
* for 不知名大佬
*
*/
$url=$_GET["url"];
$optionsi = array(
'http' => array(
'method' => 'GET',
'header' => 'User-Agent:Mozilla/5.0 (Linux; U; Android 4.0.3; zh-CN; vivo X9i Build/N2G47H) AppleWebKit/537.36 (KHTML,like Gecko) Version/4.0 Chrome/40.0.2214.89 UCBrowser/11.9.3.973 Mobile Safari/537.36'
)
);
$context = stream_context_create($optionsi);
$data = file_get_contents($url, false, $context);
preg_match("/hasvedio: '(.*)'/isU",$data,$cid);
preg_match("/picURL = '(.*)'/isU",$data,$img);
$vurl = $cid[1];
$img = $img[1];
$play = "dplayer";
$result = array(
'code'=>200,
'play'=>$play,
'url'=>"https:".$vurl,
'pic'=>$img,
);
echo json_encode($result);
exit();
?>
[/rihide]
© 版权声明
THE END
暂无评论内容