samirelanduk / tiktok-save

A Python tool for backing up your liked and bookmarked videos on tiktok to your computer.
90 stars 13 forks source link

Add the uniqueId (username) at the beginning of each file name #8

Closed tosirisuk closed 1 year ago

tosirisuk commented 1 year ago

The current download filename format is name = f"{dt_string}_{tiktok_id}"

The proposing format is name = f"{uniqueId}_๘_{dt_string}_{tiktok_id}"

The uniqueId is the username of the TikTok user

Adding the Tiktok content user uniqueId to the beginning of each file, and followed by the _๘_ string to separate the uniqueId and the rest of the filename. We use _๘_ instead of plain _ since some user has their uniqueId ends with underscore _ which could lead to a future bug of string separation (split).

samirelanduk commented 1 year ago

What is the benefit of adding the user's ID to the start of the file?

This also changes the README to instruct people to clone your fork rather than this repo - presumably that's a mistake? It also adds an instruction to install playwright, but that is already in requirements.txt. Did it not install when you tried it?