Skip to content

This repository contains a simple console application that allows you to download videos and images from TikTok using Node.js. The app utilizes several npm packages for interaction with the TikTok API and managing downloads.

License

Notifications You must be signed in to change notification settings

RehanDias/tiktok-downloader-console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TikTok Video and Image Downloader 🚀

Overview

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.

Features

  • ✨ 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

Installation

Prerequisites

  • Node.js (v14 or higher)
  • npm (v6 or higher)
  1. Clone the repository:

    https://github.com/RehanDias/tiktok-downloader-console.git
  2. Navigate to the project directory:

    cd tiktok-downloader-console
  3. Install dependencies:

    npm install
  4. Run the script:

    node tiktok-downloader.js

Usage

  1. 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
      ];
  2. Execute the script to download the specified content.

File Naming

  • Videos: {authorUniqueId}_video_{formattedDate}_{videoId}.mp4
  • Images: {authorUniqueId}_image_{formattedDate}_{imageIndex}.jpg

Examples

# Download videos and images from predefined TikTok URLs
node tiktok-downloader.js

Important Notes ⚠️

  • 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! 🎉

License 📜

MIT

About

This repository contains a simple console application that allows you to download videos and images from TikTok using Node.js. The app utilizes several npm packages for interaction with the TikTok API and managing downloads.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages