A Selenium-based HD TikTok video downloader using SnapTik
Project description
TikTok Downloader HD
A robust, Selenium-based library for downloading HD TikTok videos without watermarks using the SnapTik service. Uses spatial targeting to bypass standard scraping protections.
Installation
Clone the repository.
Install dependencies:
pip install -r requirements.txt
Requirements
Python 3.6+
Google Chrome browser installed
cookies.txt (Netscape format) - Recommended for fetching user profiles without login blocks.
Usage
Single Video Download
from tiktok_downloader import TikTokDownloader
Initialize downloader
dl = TikTokDownloader(
download_dir="my_videos",
cookies_path="cookies.txt",
headless=False
)
Download
dl.download("[https://www.tiktok.com/@user/video/1234567890](https://www.tiktok.com/@user/video/1234567890)", filename_prefix="video_1")
Clean up
dl.close()
Bulk Channel Download
from tiktok_downloader import TikTokDownloader
import re
dl = TikTokDownloader(download_dir="channel_dump", cookies_path="cookies.txt")
channel_url = "[https://www.tiktok.com/@realizeautomotive](https://www.tiktok.com/@realizeautomotive)"
links = dl.get_user_videos(channel_url, limit=10)
for i, link in enumerate(links):
# Extract Video ID for filename
vid_id = re.findall(r'/video/(\d+)', link)[0]
dl.download(link, filename_prefix=vid_id)
dl.close()
Disclaimer
This software is for educational purposes only. Users are responsible for complying with TikTok and SnapTik terms of service.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tiktok_downloader_hd-0.0a3.tar.gz.
File metadata
- Download URL: tiktok_downloader_hd-0.0a3.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a045e874ab629b4c8fc2dc964b4472cd65ca97283ac08b4460799a80ce7334b9
|
|
| MD5 |
a7882750df0bfe44ca4525c171c40030
|
|
| BLAKE2b-256 |
73d74675ddbac9ed4ac38a643a743fe632ff8cd8233259844cd1ff5c4497595e
|
Provenance
The following attestation bundles were made for tiktok_downloader_hd-0.0a3.tar.gz:
Publisher:
python-publish.yml on windyx0/tiktok-downloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tiktok_downloader_hd-0.0a3.tar.gz -
Subject digest:
a045e874ab629b4c8fc2dc964b4472cd65ca97283ac08b4460799a80ce7334b9 - Sigstore transparency entry: 747200903
- Sigstore integration time:
-
Permalink:
windyx0/tiktok-downloader@6c562fca0ae5affcacea7633c71ca51634b3c721 -
Branch / Tag:
refs/tags/Release - Owner: https://github.com/windyx0
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6c562fca0ae5affcacea7633c71ca51634b3c721 -
Trigger Event:
release
-
Statement type:
File details
Details for the file tiktok_downloader_hd-0.0a3-py3-none-any.whl.
File metadata
- Download URL: tiktok_downloader_hd-0.0a3-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad7604e320f53fd93b82d7ca3f9ebf2f6107689d8a70253a91b198a8dafe4313
|
|
| MD5 |
3a922b3c1207fae7f8fde3455febd83d
|
|
| BLAKE2b-256 |
a9b13223ee3985716c9e83ac53e9945beed6cd5616672fbb889ecdd09bd0d7cf
|
Provenance
The following attestation bundles were made for tiktok_downloader_hd-0.0a3-py3-none-any.whl:
Publisher:
python-publish.yml on windyx0/tiktok-downloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tiktok_downloader_hd-0.0a3-py3-none-any.whl -
Subject digest:
ad7604e320f53fd93b82d7ca3f9ebf2f6107689d8a70253a91b198a8dafe4313 - Sigstore transparency entry: 747200907
- Sigstore integration time:
-
Permalink:
windyx0/tiktok-downloader@6c562fca0ae5affcacea7633c71ca51634b3c721 -
Branch / Tag:
refs/tags/Release - Owner: https://github.com/windyx0
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6c562fca0ae5affcacea7633c71ca51634b3c721 -
Trigger Event:
release
-
Statement type: