Prevter / tiktok-scraper

TikTok video downloader
https://www.npmjs.com/package/@prevter/tiktok-scraper
MIT License
6 stars 1 forks source link

BUG: Unexpected end of JSON input at JSON.parse #5

Open omathdevelop opened 5 months ago

omathdevelop commented 5 months ago

Hi, there seems to be an issues with this pkg and not seems to work as expected anymore.

You can reproduce the Error by running this code const payloadData = await fetchVideo('https://www.tiktok.com/@sky___prince/video/7312152600206429446?lang=en'); const buffer = await payload.download(); writeFileSync('runT.mp4', buffer);

Here is the error message (SyntaxError: Unexpected end of JSON input at JSON.parse)

do you think you can maybe tell me how to fix this error myself if you don't have the time to do so