Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tiktok_downloader_hd-0.0a3.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tiktok_downloader_hd-0.0a3-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

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

Hashes for tiktok_downloader_hd-0.0a3.tar.gz
Algorithm Hash digest
SHA256 a045e874ab629b4c8fc2dc964b4472cd65ca97283ac08b4460799a80ce7334b9
MD5 a7882750df0bfe44ca4525c171c40030
BLAKE2b-256 73d74675ddbac9ed4ac38a643a743fe632ff8cd8233259844cd1ff5c4497595e

See more details on using hashes here.

Provenance

The following attestation bundles were made for tiktok_downloader_hd-0.0a3.tar.gz:

Publisher: python-publish.yml on windyx0/tiktok-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tiktok_downloader_hd-0.0a3-py3-none-any.whl.

File metadata

File hashes

Hashes for tiktok_downloader_hd-0.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 ad7604e320f53fd93b82d7ca3f9ebf2f6107689d8a70253a91b198a8dafe4313
MD5 3a922b3c1207fae7f8fde3455febd83d
BLAKE2b-256 a9b13223ee3985716c9e83ac53e9945beed6cd5616672fbb889ecdd09bd0d7cf

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page