CrazyRocks / TikScraperPHP

Wrapper for TikTok API

Home Page:https://packagist.org/packages/pablouser1/tikscraper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TikWrapperPHP

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'
    ],
    '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.

TODO

  • Detect captcha and handle error
  • Search

Credits

HUGE thanks to the following projects, this wouldn't be possible without their help

About

Wrapper for TikTok API

https://packagist.org/packages/pablouser1/tikscraper

License:MIT License


Languages

Language:PHP 100.0%