As tiktok is down in the US, this will no longer work for those users. I'm not sure the status of videos of US user accounts either.
A Python tool I made to bulk download videos from TikTok data exports. Handles liked videos, favorites, history, shared videos, chat history, and your own profile videos.
I rarely use python, and whipped this together in a few hours. I promise this code is ugly.
if you judge me on this code you go to hell before you die
If this helped and you'd like to give me some thanks you can do so on
- Downloads all video types from your TikTok data export:
- Profile videos (your own posted/reposted content)
- Liked videos
- Favorites
- Watch history
- Shared videos
- Videos from chat history
- Videos are saved into different folders based on category
- Saves metadata and thumbnails (optional)
- Multi-threaded downloads so it's not slow af
- Gui Based
- Detailed logging, ideally meant to be reentrant based off of success/error logs.
- Python 3.8+
- FFmpeg
- Clone/download this repo somewhere
Windows users can run Setup.bat to install everything and then Run.bat to run the app
Mac and Linux users can just make sure they have Python and FFmpeg installed and run the following:
# Install dependencies
pip install -r requirements.txt
# Install FFmpeg if you don't have it
# Linux: sudo apt-get install ffmpeg
# Mac: brew install ffmpeg
# Run the app
python main.py
-
Download your TikTok data
- Login to TikTok
- Go to settings and privacy
- Account
- Download your data
- Request Data => All Data
- File Format => JSON (important!!!!!)
- It may take a while depending on how much data you have, mine was only a few minutes
- Go back to the same path (Settings and Privacy => Account => Download your data)
- Download your Data => Download
- Unzip the file, it should be called user_data_tiktok.json
-
Run the app:
- Double click
Run.bat(Windows) - Or run
python main.pyfrom terminal
- Double click
-
In the app:
- Pick your data file (the user_data.json from step 1)
- Choose what to download (profile, likes, etc)
- Set your download folder
- Hit Start and let it run
- Output folder: Where to save everything
- Concurrent downloads: How many videos to download at once (default: 10)
- Rate limit: Max download speed in MB/s (default: 10MB/s)
- Save metadata: Keep the video info (on by default)
- Categories: Toggle which types of videos to download
Contributions welcome, but I don't imagine this will be useful for too long lol