generic_extractor.tiktok#

Module Contents#

class generic_extractor.tiktok.Tiktok#

Bases: generic_extractor.dropin.GenericDropin

TikTok dropin for the Generic Extractor that uses an unofficial API if/when ytdlp fails. It’s useful for capturing content that requires a login, like sensitive content.

TIKWM_ENDPOINT = 'https://www.tikwm.com/api/?url={url}'#
suitable(url, info_extractor) bool#

This dropin (which uses Tikvm) is suitable for all Tiktok type URLs - videos, lives, VMs, and users. Return the ‘suitable’ method from the TikTokIE class.

extract_post(url: str, ie_instance)#
keys_to_clean(video_data: dict, info_extractor)#
create_metadata(post: dict, ie_instance, archiver, url)#