π Download TikTok videos quickly and easily! A simple yet powerful Python tool.
π― What you can do with this tool:
- π₯ Download TikTok videos using URLs
- π·οΈ Automatic video renaming with 'tiktok_' prefix
- π Video metadata retrieval
- π‘οΈ Robust error handling
- π Python 3.6 or higher
- π¦
tiktok-scraperpackage
git clone https://github.com/vgvr0/TikTok-Video-Downloader-Python
cd tiktok-downloaderpip install tiktok-scraperfrom tiktok_downloader import download_tiktok_video
# Example
tiktok_url = "https://www.tiktok.com/@username/video/123456789"
download_directory = "/path/to/directory"
download_tiktok_video(tiktok_url, download_directory)- π
video_url(str): The URL of the TikTok video to download - π
output_dir(str): The directory where the video will be saved
The script will:
- β¬οΈ Download the video to your specified directory
- βοΈ Rename the video with a 'tiktok_' prefix
- π Print the video metadata
- π¬ Display success/error messages during the process
Downloaded video: /path/to/directory/video123.mp4
Renamed video: /path/to/directory/tiktok_video123.mp4
Video metadata: {video_information_object}
The script includes error handling that will:
- π« Catch and display any errors during download
- π’ Print informative error messages
- π‘οΈ Prevent script crashes due to download failures
Feel free to submit issues and enhancement requests! We love community contributions! β¨
This tool is for educational purposes only. Please ensure you have the right to download and use any content from TikTok before using this script.