loostie/yummy-dl 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

loostie/yummy-dl

最新稳定版本:v1.0.1

Composer 安装命令:

composer require loostie/yummy-dl

包简介

Provides a simple way to fetch data for videos on adult sites

README 文档

README

YummyDL provides a simple way to fetch video-data on adult websites

Installation

The best way to obtain YummyDL is to download it using composer

composer require loostie/yummy-dl

Usage

To keep everything simple all sites will return the same object, which will look like this:

{
    ["found"] => bool,
    ["vidLink"] => string,
    ["thumbnail"] => string,
    ["title"] => string,
    ["tags"] => array

}

If the video data for some reason could not be retrieved, all of the above will be false

Example

<?php
require 'vendor/autoload.php'; // Composer's autoloader

use Loostie\YummyDL\RedTube;       // For RedTube
use Loostie\YummyDL\SpankBang;     // For SpankBang
use Loostie\YummyDL\Xnxx;          // For Xnxx
use Loostie\YummyDL\Xvideos;       // For Xvideos

// In this example we use Xvideos, but the procedure is the same for all of them
$video = new Xvideos();
$video->setUrl("https://xvideos.com/your_preferred_video");
$video_data = $video->getVideoData();

// This is just an example where we var_dump the response
// Then check if video data was found
var_dump($video_data);
if ($video_data->found) {
    echo $video_data->title     // The title of the video
    echo $video_data->thumbnail // Link to the video thumbnail (you could use this in <img src>)
    echo $video_data->vidLink   // Direct link to the video (not on the site), where it can be downloaded
    foreach ($video_data->tags as $tag) {
        echo $tag               // All tags for the video
    }
}

Supported Websites (NSFW LINKS)

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-02-21