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.
- 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.
-
Clone the repository to your local machine:
git clone https://github.com/cxstles/SnapTikReversed.git
-
Install the required Python packages using
pip
:pip install -r requirements.txt
-
Ensure you have Node.js installed for the decoding process.
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).
- Requests - HTTP library for making requests.
- Beautiful Soup - HTML parsing library.
- Colorama - Terminal color output.
- tls_client - TLS support for making secure requests.
This project is licensed under the MIT License - see the LICENSE file for details.
- 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.