Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloaded video files are empty (0 bytes) #19

Open
buggy1985 opened this issue Mar 9, 2023 · 7 comments
Open

Downloaded video files are empty (0 bytes) #19

buggy1985 opened this issue Mar 9, 2023 · 7 comments

Comments

@buggy1985
Copy link

buggy1985 commented Mar 9, 2023

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.

@SwissAlps2
Copy link

Are you using a VPN?

@dsedinkin
Copy link

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.

@dsedinkin
Copy link

Is there a dependence on the region? If there is a vpn with which region should I use?

@naseif
Copy link
Owner

naseif commented Mar 11, 2023

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.

I was able to reproduce this issue and you are right. I will be looking into it. Thanks for the feedback

@naseif
Copy link
Owner

naseif commented Mar 11, 2023

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

@naseif
Copy link
Owner

naseif commented Mar 11, 2023

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

@j0hnm4r5
Copy link

Any updates here by chance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants