Skip to content

coflyn/snaptik-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnapTik — Media Scraper Utility

License: MIT Node.js Version Repo Size

A lightweight Node.js utility designed to process media metadata and retrieve resource links from TikTok via snaptik.app. Built for educational exploration of web scraping techniques.

Important

Disclaimer: This tool is for educational purposes and personal use only. The developer does not condone or encourage copyright infringement. Users are responsible for ensuring their use of this software complies with the Terms of Service of the platforms involved and local laws.

Features

  • Single Video Support: Download TikTok videos without watermark.
  • Photo Slideshows: Automatically download all images in a photo post.
  • Auto-Organization: Creates structured folders for photo collections.
  • Real-time Progress: Interactive CLI with progress bars and status spinners.

Installation

Clone the repository and install the dependencies:

npm install

Usage

To process a TikTok URL, run the following command:

node cli.js "TIKTOK_URL"

Options

  • -o, --output <path>: Specify the output directory (defaults to ./downloads).

Dependencies

  • axios: For handling HTTP requests.
  • cheerio: For parsing HTML content.
  • commander: For the CLI interface.
  • cli-progress: For visual progress bars.
  • fs-extra: For enhanced file system operations.
  • ora: For terminal spinners.
  • chalk: For terminal styling.

Module

const snaptik = require("./index");

async function example() {
  const result = await snaptik("TIKTOK_URL");
  console.log(result);
}

example();

File Structure

├── downloads/    # Downloaded media files
├── cli.js        # Command-line interface
├── index.js      # Main scraper logic
├── package.json  # Project dependencies
└── README.md     # Documentation

Note

Web scrapers are sensitive to changes in the target website's structure. If the tool stops working, please check for updates or report an issue.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Minimalist Node.js scraper for TikTok media via snaptik.app.

Topics

Resources

License

Stars

Watchers

Forks

Contributors