Download the PHP package sabri/tiktok without Composer
On this page you can find all versions of the php package sabri/tiktok. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor sabri
Package tiktok
Short Description sabri/tiktok is php Tiktok scraper
License
Homepage http://github.com/snuzi
Package tiktok
Short Description sabri/tiktok is php Tiktok scraper
License
Homepage http://github.com/snuzi
Please rate this library. Is it a good library?
sabri/tiktok
Rate from 1 - 5
Rated 5.00 based on 1 reviews
Rated 5.00 based on 1 reviews
Informations about the package tiktok
This is a PHP implementation for scraping Tiktok (or Musically) through API.
PHP 7.3
is required
Scraper API
getUser($uid)
Returns user profile data.$uid
is a user's Tiktok unique id.getUserVideos($uid)
Returns a list of user videos.$uid
is a user's Tiktok unique id.searchUser($keyword)
Returns user search results.getVideo($uid)
Returns a video datails.$uid
is a video Tiktok unique id.searchHashtags($keyword)
Returns a list of found hashtags.getHashtagMedia($uid)
Returns a list of videos for a certain hashtag.$uid
is a hashtag Tiktok unique id.
Your contribution is welcome!
Use this scraper
In order to use and make requests to Tiktok API, some extra device parameters are needed. These parameters should be extracted from your mobile phone by using a man in the middle proxy. I used PacketCapture for Android, you may use any proxy application you like. Grab the following parameters: device_id
, iid
, openudid
.
Run the example
- Install commposer packages in the root of the project.
composer install
- Run
php demo.php
to see the results
Run tests
- Before runing tests you should modify and set correct environment variables
tests/bootstrap.php
. - Do not commit
tests/bootstrap.php
after your changes.
All versions of tiktok with dependencies
PHP Build Version
Package Version
The package sabri/tiktok contains the following files
Loading the files please wait ....