
gittech. site
for different kinds of informations and explorations.
TikTok-dl: Download your important content off of TikTok
Published at
Jan 16, 2025
Main Article
Download Your Important Content Off TikTok
This guide will help you download your TikTok videos or favorites to your computer. Even if you’re not tech-savvy, just follow these simple steps!
Step 1: Request Your TikTok Data
- Open the TikTok app or website.
- Submit a request to download your data by following these instructions.
- When prompted, choose JSON as the file format.
- TikTok will notify you when your data is ready to download. Save the ZIP file to your computer.
Step 2: Download the Tool
- Go to the GitHub Repository for this TikTok Video Downloader.
- On the repository page, look for a green Code button.
- Click Code and then select Download ZIP.
- Save the ZIP file to your computer and unzip it to a folder of your choice.
Step 3: Install Python (If Needed)
- Download Python from the official website.
- Run the installer and make sure to check the box that says "Add Python to PATH" during installation.
Step 4: Install Required Libraries
- Open a terminal or command prompt.
- Navigate to the folder where you unzipped the tool.
- Run the following command to install the required libraries:
pip install -r requirements.txt
Step 5: Prepare Your TikTok Data
- Move the ZIP file you downloaded from TikTok to your computer.
- Unzip the file. Inside, you’ll find a large JSON file that contains all your TikTok data.
Step 6: Run the Tool
You can use this tool in two ways: through a simple graphical interface or via command line.
Option A: Using the Graphical Interface
- Navigate to the folder where you unzipped the tool
- Run
python main-ui.py
- In the window that opens:
- Click "Browse" to select your TikTok data JSON file
- Click "Browse" to choose where to save the videos
- Select either "Favorite Videos" or "My Videos"
- Click "Start Download" to begin
- The progress bars will show both overall progress and current video progress
Option B: Using the Command Line
- Open a terminal or command prompt.
- Navigate to the folder where you unzipped the tool.
- Run one of the following commands, depending on what you want to download:
To Download Your TikTok Videos
python main.py path_to_json_file output_folder --type my-videos
- Replace
path_to_json_file
with the path to your JSON file (e.g.,./user_data_tiktok.json
). - Replace
output_folder
with the folder where you want the videos saved. - Videos will be named based on the date they were created, in chronological order.
To Download Your Favorite Videos
python main.py path_to_json_file output_folder --type favorites
- Replace
path_to_json_file
with the path to your JSON file (e.g.,./user_data_tiktok.json
). - Replace
output_folder
with the folder where you want the videos saved. - Videos will be named based on when you favorited them.
Important Notes
- Storage Space: Videos are large. Ensure you have enough storage space on your computer before downloading.
- Backup Your Data: Once TikTok is gone, this may be your only way to preserve your videos.
Feel free to ask for help if you get stuck or encounter any issues!