tiktok

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extractor

type Extractor struct{}

Extractor implements the extractor.Extractor interface for TikTok using a real headless browser (pkg/tiktok), which bypasses TikTok's anti-bot where the lux-based extractor fails.

func New

func New() *Extractor

New creates a new TikTok extractor.

func (*Extractor) Extract

func (e *Extractor) Extract(ctx context.Context, url string) (*models.Media, error)

Extract extracts media from a TikTok URL.

func (*Extractor) Hosts

func (e *Extractor) Hosts() []string

Hosts returns the supported hosts, including the short-link domains (vt./vm.) which are not normalized away by the registry.

func (*Extractor) Name

func (e *Extractor) Name() string

Name returns the extractor name.

Jump to

Keyboard shortcuts

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