Giter Club home page Giter Club logo

youku_parse's Introduction

解析优酷视频地址

使用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 (分析下载链接)

youku_parse's People

Contributors

weituotian avatar

Watchers

James Cloos avatar tanzhi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.