php实现腾讯视频解析源码
<?php//腾讯视频解析
$vids = isset($_GET['vids']) ? $_GET['vids'] : "";
if ($vids == '') {
die('请勿非法尝试');
}
$res = file_get_contents("http://vv.video.qq.com/getinfo?vids={$vids}&platform=101001&charge=0&otype=json&defn=shd");
$search= ["QZOutputJson=", ";"];
$replace = ["", ""];
$res = str_replace($search, $replace, $res);
$res = json_decode($res);
$obj = $res->vl->vi;
$obj = $obj;
$obj = $obj->ul->ui;
$obj = $obj;
$URI = $obj->url;
// $URI = (($res->vl->vi)->ul->ui)->url;
$URI2 = "http://vv.video.qq.com/getkey?format=2&otype=json&vt=150&vid={$vids}&ran=0\%2E9477521511726081\\&charge=0&filename={$vids}.mp4&platform=11";
$res = file_get_contents($URI2);
$search = ["QZOutputJson=", ";"];
$replace= ["", ""];
$res = str_replace($search, $replace, $res);
$res = json_decode($res);
$key = $res->key;
$filename = $res->filename;
$URI = $URI . $filename . '?vkey=' . $key;
echo $URI;
die;
{:4_87:}{:4_86:}厉害了重大回归. 厉害了
厉害了
页:
[1]