Wanghuaichen / SnapTikReversed

A Python-based script used for retrieving and downloading TikTok videos using Snaptik.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SnapTikReversed

SnapTikReversed is a Python class designed to retrieve and download TikTok videos from the Snaptik website. It provides a convenient way to obtain TikTok video files for offline viewing or other purposes.

Features

  • Retrieve TikTok video URLs from the Snaptik website.
  • Decode video URLs using a JavaScript-based decoding process.
  • Download TikTok videos and save them locally.
  • Error handling for robust performance.

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/cxstles/SnapTikReversed.git
  2. Install the required Python packages using pip:

    pip install -r requirements.txt
  3. Ensure you have Node.js installed for the decoding process.

Usage

from SnapTikReversed import SnapTikReversed

# Initialize the SnapTikReversed class
snaptik = SnapTikReversed()

# Get a TikTok video and specify the path to save the video (optional)
video = snaptik.get_video("https://www.tiktok.com/@user/video/id", "") 

# Print the result
print(video)

Replace the video URL with the TikTok video you want to download, and specify the local path where you want to save the video (works with mobile URLs as well).

Dependencies

License

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

Acknowledgments

  • This project was inspired by the need to easily download TikTok videos.
  • Special thanks to the developers of the Snaptik website for providing a service to retrieve TikTok videos.

About

A Python-based script used for retrieving and downloading TikTok videos using Snaptik.

License:MIT License


Languages

Language:Python 66.4%Language:JavaScript 33.6%