neihnat/tiktok-downloader 问题修复 & 功能扩展

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

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

neihnat/tiktok-downloader

最新稳定版本:1.0.0

Composer 安装命令:

composer require neihnat/tiktok-downloader

包简介

This is Package download tiktok video no watermark

README 文档

README

PHP package Download TikTok video without watermark

Install

$ composer require neihnat/tiktok-downloader

Example

  1. Get data
<?php

use NeihNat\TiktokDownloader\TiktokVideo;

$tiktokVideo = new TiktokVideo();
$cookie = 'tiktok-cookie-example.txt' // Replace your cookies here
$response = $tiktokVideo->setCookie($cookie) // Note: accepts strings or files
            ->setUrl($url) // Ex: https://www.tiktok.com/@neihnat/video/7321351732833897730
            ->getData();
return $response->data;

// Response
{#2055 ▼
  +"type": "video"
  +"video": "https://v16-webapp-prime.tiktok.com/video/tos/useast2a/tos-useast2a-ve-0068-euttp/oYiLPSkYhQaEBy0TL1ADZKtZT3bEwIBwIHi9s/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked& ▶"
  +"audio": "https://v16-webapp-prime.tiktok.com/video/tos/useast2a/tos-useast2a-v-2370-euttp/o8DPQtftgytElFCUoJ9BCjPwEiYDlQqQJnsQBf/?a=1988&ch=0&cr=0&dr=0&er=0&lr=default&c ▶"
  +"thumb": "https://p16-sign-useast2a.tiktokcdn.com/tos-useast2a-avt-0068-euttp/9ecb371afe13b6fac2c0d83403270d86~c5_100x100.jpeg?lk3s=a5d48078&x-expires=1705035600&x-signat ▶"
  +"title": "Amazing TOP"
  +"description": "Please Watch until the End!  🙏 #cleaning #drain #satisfying #rivercleaning #draincleaning #rec "
  +"images": null
}
  1. Get HTML
<?php
// Result will be an html string that you can use to get the elements you want
use NeihNat\TiktokDownloader\TiktokVideo;

$tiktokVideo = new TiktokVideo();
$cookie = 'tiktok-cookie-example.txt' // Replace your cookies here
$response = $tiktokVideo->setCookie($cookie)
            ->setUrl($url)
            ->getOriginData();
return $response;
  1. Download Tiktok video, audio, image
<?php

use NeihNat\TiktokDownloader\TiktokVideo;

$tiktokVideo = new TiktokVideo();
        $tiktokVideo->setCookie($cookie)
            ->setUrl($url)
            ->getData();
// Download video
$videoLink = $tiktokVideo->data->video; // Get video link
$fileName = 'neihnat-video-downloader'; // Name of the video after downloading
$type = 'video' // Accept type: video, audio, image
$download = $tiktokVideo->download($videoLink, $fileName, $type);
return $download;

Features

  • Download Tiktok video without watermark
  • Download Tiktok image
  • Download Tiktok audio

Notes.

NOTE: You should use the "You need using extension "Get cookies.txt LOCALLY" extension to download cookies.

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固