tiktok-scraper
tiktok-scraper copied to clipboard
Downloaded video files are empty (0 bytes)
When using downloadAllVideosFromUser
, the created files are all empty.
I tried with different usernames, and also with a cookies.txt file, but I'm getting the same results.
There are no errors on the console.
EDIT: After some debugging, it turns out that the URLs return a 403 status code. Any ideas how to get around this?
Let me know if I can help with any further details.
Are you using a VPN?
Using the fetchVideo
method, I get downloadUrl
and when I try to go to the address, I get a 403 response. Perhaps I somehow download the resource wrong, who in the topic show your implementation in the documentation of the solution did not see.
Is there a dependence on the region? If there is a vpn with which region should I use?
Using the
fetchVideo
method, I getdownloadUrl
and when I try to go to the address, I get a 403 response. Perhaps I somehow download the resource wrong, who in the topic show your implementation in the documentation of the solution did not see.
I was able to reproduce this issue and you are right. I will be looking into it. Thanks for the feedback
When using
downloadAllVideosFromUser
, the created files are all empty. I tried with different usernames, and also with a cookies.txt file, but I'm getting the same results. There are no errors on the console.EDIT: After some debugging, it turns out that the URLs return a 403 status code. Any ideas how to get around this?
Let me know if I can help with any further details.
I guess this has something to do with the tiktok api endpoint that the library is using to get the videos. I guess they have added extra authentication to the links. I still did not look into it but from your feedback I guess this is the case. I will look into it and give you updates. Thanks for the feedback
Is there a dependence on the region? If there is a vpn with which region should I use?
As far as I know, you do not need vpn to access specific videos on tiktok so no
Any updates here by chance?