本帖最后由 jiujiukeji 于 2020-4-23 14:25 编辑
[PHP] 纯文本查看 复制代码 <?php
//腾讯视频解析
$pathurl = isset($_GET['url']) ? $_GET['url'] : "";
$pathurl=pathinfo($pathurl);
$vids=$pathurl['filename'];
$res = file_get_contents("http://vv.video.qq.com/getinfo?vids={$vids}&platform=101001&charge=0&otype=json&defn=s");
//print_r($res);die;
$search = ["QZOutputJson=", ";"];
$replace = ["", ""];
$res = str_replace($search, $replace, $res);
$res = json_decode($res);
$obj = $res->vl->vi;
$objs = $obj[0];
$obj = $obj[0];
$obj = $obj->ul->ui;
$obj = $obj[0];
$URI = $obj->url;
$key = $objs->fvkey;
$filename = $objs->fn;
$pt = $URI . $filename . '?vkey=' . $key;
$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";
$ress = file_get_contents($URI2);
$search = ["QZOutputJson=", ";"];
$replace = ["", ""];
$resg = str_replace($search, $replace, $ress);
$resd = json_decode($resg);
$key = $resd->key;
$filename = $resd->filename;
$gq = $URI . $filename . '?vkey=' . $key;
echo "<a href='".$pt."' >普通</a><br/><a href='".$gq."'>高清</a>";
只是真实地址解析,不是VIP解析哈 代码保存.PHP文件运行
运行方式 保存.php文件到根目录下 http://域名/xxx.php?url=腾讯视频某个视频的地址
|