TikTokLive package

Subpackages

Submodules

TikTokLive.utils module

TikTokLive.utils.get_room_id_from_main_page_html(main_page_html: str) str

Get the room ID from the HTML of the creator’s page. If this fails, you are probably blocked from TikTok. Use a VPN.

Returns

Their room ID

TikTokLive.utils.validate_and_normalize_unique_id(unique_id: str) str

Take a host of unique_id formats and convert them into a “normalized” version. For example, “@tiktoklive” -> “tiktoklive”

Returns

Normalized version of the unique_id

Module contents