Skip to content

FetchRoomIdLiveHTMLRoute

Route to retrieve the room ID for a user

Route to retrieve the room ID for a user

class FetchRoomIdLiveHTMLRoute(ClientRoute)
  • SIGI_PATTERN (re.Pattern)

Parse the room ID from livestream HTML

@classmethod
def parse_room_id(html: str) -> str

str — The user’s room id

from TikTokLive.client.web.routes import FetchRoomIdLiveHTMLRoute

TikTokLive/client/web/routes/fetch_room_id_live_html.py:20