1.0.0 • Published 11 months ago

tiktokdl-core v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

TikTokDL

TikTokDL is a Node.js package created by @Rlzyy for scraping TikTok videos and audio. It extracts video URLs, captions, and user details from TikTok.

Installation

  1. Install Node.js: Make sure Node.js is installed. If not, you can install it using Termux:

    pkg install nodejs
  2. Install TikTokDL: Create a project directory and install TikTokDL:

    mkdir tiktok-scraper
    cd tiktok-scraper
    npm init -y
    npm install tiktokdl-core

Usage

CommonJS (CJS)

Create a file named scrape-tiktok.js:

const tiktok = require('tiktokdl-core');

const url = 'https://www.tiktok.com/@example/video/1234567890';

tiktok(url).then(result => {
    console.log('TikTok Scraper Result:', result);
}).catch(error => {
    console.error('Error:', error);
});
1.0.0

11 months ago