TikTok Video and Image Downloader is a Node.js script designed to effortlessly download TikTok videos and images. With this script, you can quickly fetch content from TikTok URLs and save them to your local machine.
- ✨ Download TikTok videos and images
- 📦 Easy installation and setup
- 🔄 Retry mechanism for robust HTML parsing
- 📅 Automatic file naming with upload date
- 🎉 Support for both video and image URLs
- Node.js (v14 or higher)
- npm (v6 or higher)
-
Clone the repository:
https://github.com/RehanDias/tiktok-downloader-console.git
-
Navigate to the project directory:
cd tiktok-downloader-console
-
Install dependencies:
npm install
-
Run the script:
node tiktok-downloader.js
-
Modify the
urls
array in the script to include the TikTok video or image URLs you want to download.const urls = [ "https://www.tiktok.com/@user1/video/1234567890123456789", "https://www.tiktok.com/@user2/video/2345678901234567890", "https://www.tiktok.com/@user3/photo/3456789012345678901", "https://www.tiktok.com/@user4/photo/4567890123456789012", // Add more TikTok URLs as needed ];
-
Execute the script to download the specified content.
- Videos:
{authorUniqueId}_video_{formattedDate}_{videoId}.mp4
- Images:
{authorUniqueId}_image_{formattedDate}_{imageIndex}.jpg
# Download videos and images from predefined TikTok URLs
node tiktok-downloader.js
- This script was created for educational purposes and should be used responsibly and in compliance with TikTok's terms of service.
- TikTok's website structure or APIs may change over time, which could potentially break this script. Regular updates may be required to ensure its functionality.
Note: Before using the script, make sure to replace the placeholder values in the urls
array in the code according to your desired TikTok video or image URLs. Configure any other settings as needed. Happy TikTok video and image downloading! 🎉