揰掵佲 发表于 2018-7-30 19:37:44

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;


艾鱼 发表于 2018-7-30 21:33:37

{:4_87:}{:4_86:}厉害了重大回归.

ardahfy 发表于 2018-10-20 01:11:28

厉害了
厉害了
页: [1]
查看完整版本: php实现腾讯视频解析源码