Route to retrieve the room ID for a user
Signature
Section titled “Signature”class FetchRoomIdLiveHTMLRoute(ClientRoute)Attributes
Section titled “Attributes”SIGI_PATTERN(re.Pattern)
Methods
Section titled “Methods”parse_room_id
Section titled “parse_room_id”Parse the room ID from livestream HTML
@classmethoddef parse_room_id(html: str) -> strParameters
Section titled “Parameters”html(str) — The HTML to parse from https://tiktok.com/@\<unique_id>/live
Returns
Section titled “Returns”str — The user’s room id
Import
Section titled “Import”from TikTokLive.client.web.routes import FetchRoomIdLiveHTMLRoute