19 Star 59 Fork 15

韦驮天 / youku_parse

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

解析优酷视频地址

使用php解析优酷网址视频地址,2018/3/23 更新

项目结构

只看new目录下的就可以了,其它的没意义,都是参考用的

使用方法

require_once "YoukuVideo.php";
$youkuVideo = new YoukuVideo('XMzQ3ODQ0OTA2MA==');
$json = $youkuVideo->get_json();
var_dump($json)

$json 是一个array, 优酷返回来的视频info,有很多关于视频的信息,按需处理吧

整合

整合到CI框架

复制new/YoukuVideo.php到library目录上,根据框架的文档调用这个类

整合到ThinkPHP

就一个new/YoukuVideo.php文件

例子 new/index.php (分析下载链接)

The MIT License (MIT) Copyright (c) 2017 韦驮天 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

使用php解析优酷视频地址 展开 收起
PHP
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/weituotian/youku_parse.git
git@gitee.com:weituotian/youku_parse.git
weituotian
youku_parse
youku_parse
dev

搜索帮助