TikTok scraper in PHP
Several video routes now return a videoDownloadData
object that contains the following:
[
'referer' => 'https://www.tiktok.com/',
'userAgent' => 'User Agent....',
'cookies' => [
'tt_webid' => '',
'tt_webid_v2' => ''
]
]
This can be used with the:
$scraper->user->downloadVideoFromUrl('url', $videoDownloadData);
Video routes now require the referer, the user agent, and the webid that was used with the original request to get the video data.
Refer to https://github.com/RobertGrubb/tiktok-php/pull/29 for changes.
new Scraper([
'config' => 's_v_web_id=xxx; tt_webid=xxx...'
]);