A Wrapper for the TikTok API made with PHP
$api = new \TikScraper\Api([
'user_agent' => 'YOUR_CUSTOM_USER_AGENT_HERE',
'proxy' => [
'host' => 'EXAMPLE_HOST',
'port' => 8080,
'user' => 'EXAMPLE_USER',
'password' => 'EXAMPLE_PASSWORD'
],
'signer' => [
'remote_url' => 'http://localhost:8080/signature', // If you want to use remote signing
'browser_url' => 'http://localhost:4444' // If you want to use local chromedriver
'close_when_done' => true // --> Only for local signing <-- Set to true if you want to quit the browser after making the request (default true)
]
], $cacheEngine);
$hashtag = $api->hashtag();
echo $hashtag->feed()->getFull()->toJson();
For using this program you need to have a signing service, you can sign your requests using a remote server or having a chromedriver running locally.
- Detect captcha and handle error
- Search
HUGE thanks to the following projects, this wouldn't be possible without their help