Code Monkey home page Code Monkey logo

douyin's Introduction

php127/douyin

已实现

  • 获取无水印视频链接
  • 获取图片封面
  • 获取视频音乐
  • 获取视频标题

支持平台

  • 抖音
  • 快手

要求

  1. php >= 7.3
  2. Composer

安装

composer require php127/douyin -vvv

用法

use Php127\Douyin\Factory;;

//抖音
$app = Factory::douyin('https://v.Douyin.com/eeYy4Yo/');

//快手
$app = Factory::kuaishou('https://v.kuaishou.com/gcNIRW');

获取所有信息

$app->getData();

/*
Array
(
    [title] => “如果风会说话,不知道他会不会告诉你,我一直在想你”#三月你好
    [url] => https://aweme.snssdk.com/aweme/v1/playwm/?video_id=v0d00ff90000c0u6h388f47ar50b7ssg&ratio=720p&line=0
    [img] => https://p29.Douyinpic.com/tos-cn-p-0015/dab756097b094853bbffb9b744aa246a_1614571698~tplv-dy-360p.jpeg?from=2563711402
    [music] => https://sf6-cdn-tos.Douyinstatic.com/obj/ies-music/6934532600002284296.mp3
)
*/

单个获取

//获取title
$app->getTitle();

//获取img
$app->getImg();

//获取music
$app->getMusic();

//获取无水印url
$app->getUrl();

//获取图文类型中的图片
$app->getImages();

重新设置url

$app->setUrl(string $url = 'https://v.Douyin.com/eeYy4Yo/');
$app->getData();
//...

参与贡献

  1. fork 当前库到你的名下
  2. 在你的本地修改完成审阅过后提交到你的仓库
  3. 提交 PR 并描述你的修改,等待合并

License

MIT license

douyin's People

Contributors

aa24615 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

douyin's Issues

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.