neihnat/tiktok-downloader
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
- 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 }
- 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;
- 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.
neihnat/tiktok-downloader 适用场景与选型建议
neihnat/tiktok-downloader 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 164 次下载、GitHub Stars 达 5, 最近一次更新时间为 2024 年 01 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 neihnat/tiktok-downloader 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 neihnat/tiktok-downloader 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 164
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-01-10