Git Product home page Git Product logo

video-tools's Introduction

短视频去水印

集成了:抖音、火山、头条、快手、梨视频、美拍、陌陌、皮皮搞笑、皮皮虾、全民搞笑、刷宝、微视、小咖秀、最右等等。其他如果需要对接的可以issues

2020-04-29:第一个版本

安装方法:

composer require smalls/video-tools

**PHP>=5.6

VideoManager使用文档:(可以参考tests/test.php)

抖音:VideoManager::DouYin()->start($url);
快手:VideoManager::KuaiShou()->start($url);
火山:VideoManager::HuoShan()->start($url);
头条:VideoManager::TouTiao()->start($url);
快手:VideoManager::XiGua()->start($url);
快手:VideoManager::WeiShi()->start($url);
皮皮虾:VideoManager::PiPiXia()->start($url);
最右:VideoManager::ZuiYou()->start($url);
美拍:VideoManager::MeiPai()->start($url);
梨视频:VideoManager::LiVideo()->start($url);
全民搞笑:VideoManager::QuanMingGaoXiao()->start($url);
皮皮搞笑:VideoManager::PiPiGaoXiao()->start($url);
陌陌:VideoManager::MoMo()->start($url);
刷宝:VideoManager::ShuaBao()->start($url);
小咖秀:VideoManager::XiaoKaXiu()->start($url);

返回成功:array

 array(8) {
    ["md5"]=>
    string(32) "fb0f49b1158923a972d9eed40f97965e"
    ["message"]=>
    string(29) "https://v.kuaishou.com/xxxx"
    ["user_name"]=>
    string(15) "xxxx"
    ["user_head_img"]=>
    string(103) "https://tx2.a.yximgs.com/uhead/AB/2020/04/20/14/xxxxx.jpg"
    ["desc"]=>
    string(46) "小子,xxxxx"
    ["img_url"]=>
    string(139) "https://js2.a.yximgs.com/xxxxx.jpg"
    ["video_url"]=>
    string(144) "https://jsmov2.a.yximgs.com/xxxxx.mp4"
    ["type"]=>
    string(5) "video"
 }

返回失败:exception

    需要进行try-catch
    namespace \Smalls\VideoTools\Exception;
    try {
        $res = VideoManager::KuaiShou()->start("https://v.kuaishou.com/xxxx");
    } catch (ErrorVideoException $e) {
        $e->getTraceAsString();
    }

结束:

注:仅供学习,切勿用于其他用途。
喜欢的话,给个star呗
喜欢的话,给个star呗
喜欢的话,给个star呗

自己可以参考tests/test.php(需要在主页面里面调式:小白一枚)
都无法使用再提issue

video-tools's People

Contributors

smalls0098 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.