Dinoosauro / tiktok-to-ytdlp

Fetch all the liked videos, videos from an user, videos with a specific sound etc. from TikTok, and creates a script to download them with yt-dlp
MIT License
157 stars 15 forks source link

Browser running out of memory #21

Closed brandondhayes closed 4 weeks ago

brandondhayes commented 1 month ago

I've managed to have some success with this utility, however after a few thousand videos my browser begins to slowdown and take up a lot of memory. I wonder if it's possible to delete earlier page elements as the page refreshes to try and keep browser memory maintainable?

Dinoosauro commented 1 month ago

Hi! I've added an option that permits to keep only the last 20 videos form the DOM, this should greatly help with this. If you're using the Firefox extension, you might need to wait a little bit since Mozilla needs to approve the update. Otherwise, you can just set delete_from_dom to true (keep also get_array_after_scroll to false) and start getting the DOM items. If there are any other issues, let me know