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

getAllVideosFromUser takes too long #17

Open
EuropaYou opened this issue Feb 14, 2023 · 1 comment
Open

getAllVideosFromUser takes too long #17

EuropaYou opened this issue Feb 14, 2023 · 1 comment

Comments

@EuropaYou
Copy link

It takes too long to download one Tiktok page with too many videos.

This is because of these lines. Since there are too many 'for' loops, the performance drops a lot.

@naseif
Copy link
Owner

naseif commented Feb 14, 2023

Hey @EuropaYou, thank you for the feedback. I am aware of this behavior and no, it has nothing to do with the loops, the function getUserVideos uses the library tiktok-signature to generate the request headers needed for sending a request to the api. tiktok-signature uses puppeteer and for each tiktok page a request is being sent and that is why it's taking so much especially if the user has a high amount of videos. I will try to find a way to improve the performance but I can not promise to be honest

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

2 participants