daaner/tiktok 问题修复 & 功能扩展

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

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

daaner/tiktok

Composer 安装命令:

composer require daaner/tiktok

包简介

TikTok scrapper for Laravel 7+

README 文档

README

Scrutinizer Code Quality Laravel Support PHP Support Latest Stable Version Official Site Total Downloads License

Scraper TikTok (tiktok.com) using this Laravel framework package (Laravel).

Requirement

  • Laravel >= 7
  • PHP >= 7.2.5

Install

Install package.

composer require daaner/tiktok

Add provider and facade in config/app.php.

Daaner\TikTok\TikTokServiceProvider::class,

// ---
'TikTok' => Daaner\TikTok\Facades\TikTok::class,

Publish the config and localization files with the command:

php artisan vendor:publish --provider="Daaner\TikTok\TikTokServiceProvider"

Configuration

No special settings are needed. Queries also work with default settings. If you need finer settings, change the config file config/tiktok.php after If necessary, write the settings to a .env.

Used

Use the model you want and get an array.

Model - UserInfo

  • getUser($userName) - Get user data by name (full array)
  • getUserInfo($userName) - Get simple user data by name (only main and secondary array)
use Daaner\TikTok\Models\UserInfo;

$tt = new UserInfo;
$user = $tt->getUser('tiktok');
//or
$user = $tt->getUser('@tiktok');
// or for simple info
$user = $tt->getUserInfo('tiktok');

dd($user);

Model - TagInfo

  • getTag($tag) - Get tag info
  • getTagInfo($tag) - Get tag simple info
  • getTagApi($id, $count = 30, $cursor = 0) - Get tag id data
use Daaner\TikTok\Models\TagInfo;

$tt = new TagInfo;
$tag = $tt->getTag('apple');
//or
$tag = $tt->getTag('#apple');
// or for simple
$tag = $tt->getTagInfo('apple');

//and API data
$tag = $tt->getTagApi('13100', 10, 0);

dd($tag);

Model - MusicInfo

  • getMusic($music) - Get music info
  • getMusicInfo($music) - Get music simple info
  • getMusicApi($id, $count = 30, $cursor = 0) - Get music id data (count shows 1 item less only this API query)))))
use Daaner\TikTok\Models\MusicInfo;

$tt = new MusicInfo;
$music = $tt->getMusic('I-JUST-FELL-6768866707013388289');
//or
$music = $tt->getMusic('6768866707013388289');
// or for simple
$music = $tt->getMusicInfo('6768866707013388289');

//and API data
$music = $tt->getMusicApi('6728860413338847233', 10, 2);

dd($music);

Model - DiscoverInfo

  • getDiscover() - Get discover info
  • getDiscoverApi($type) - Get Suggested data
use Daaner\TikTok\Models\DiscoverInfo;

$tt = new DiscoverInfo;
$discover = $tt->getDiscover();

//and API data
$discover = $tt->getDiscoverApi('user');
//or
$discover = $tt->getDiscoverApi('music');
//or
$discover = $tt->getDiscoverApi('challenge');

dd($discover);

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

daaner/tiktok 适用场景与选型建议

daaner/tiktok 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.1k 次下载、GitHub Stars 达 11, 最近一次更新时间为 2020 年 11 月 22 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「TikTok」 「daaner」 「tiktok-php」 「tiktok-scrapper」 「tiktok-parse」 「laravel-tiktok」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 daaner/tiktok 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 daaner/tiktok 我们能提供哪些服务?
定制开发 / 二次开发

基于 daaner/tiktok 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-22