spawnrad/tiktok
Composer 安装命令:
composer require spawnrad/tiktok
包简介
Get data from TikTok
README 文档
README
A Wrapper for the TikTok API made with PHP
How to Use
$api = new \TikScraper\Api([ 'user_agent' => 'YOUR_CUSTOM_USER_AGENT_HERE', 'proxy' => [ 'host' => 'EXAMPLE_HOST', 'port' => 8080, 'user' => 'EXAMPLE_USER', 'password' => 'EXAMPLE_PASSWORD' ], // More info about signing below 'signer' => [ 'method' => 'remote', 'url' => 'http://localhost:8080/signature', 'close_when_done' => true // --> Only for browser signing <-- Set to true if you want to quit the browser after making the request (default true) ] ], $cacheEngine); $hashtag = $api->hashtag('funny'); echo $hashtag->feed()->getFull()->toJson();
Signing
For using TikScrapperPHP you need to use a signing service. There are multiple available:
Remote signing
This method involves using an external signer.
- Set 'method' to
remote - Set 'url' to the signing endpoint
Currently supported:
- tiktok-signature (uses headless Chrome browser)
- SignTok (uses JSDOM)
Browser
This method involves using a chromedriver instance.
- Set 'method' to
browser - Set 'url' to the chromedriver endpoint (usually http://localhost:4444)
You can also generate the documentation available using PHPDoc
Caching
TikScrapperPHP supports caching requests, to use it you need to implement CacheInterface.php
TODO
- Search
- Comments
- X-Bogus support for ChromeDriver
Credits
- @Sharqo78: Working TikTok downloader without watermark
HUGE thanks to the following projects, this wouldn't be possible without their help
spawnrad/tiktok 适用场景与选型建议
spawnrad/tiktok 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.77k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 09 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 spawnrad/tiktok 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 spawnrad/tiktok 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.77k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-19