tiktok

package
v0.5.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package tiktok extracts downloadable media from TikTok video links by loading the page in a real (headless) browser, which bypasses TikTok's anti-bot.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVideo

func GetVideo(ctx context.Context, link string) (*models.Media, error)

GetVideo loads a TikTok video page (short vt.tiktok.com / vm.tiktok.com links are followed automatically) and returns the playable media.

TikTok CDN URLs return 403 unless the request carries the visit cookies plus a tiktok.com referer, so those are attached to the item as DownloadHeaders for internal/media.Loader.Open to use.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL