Module auth

Module auth 

Source
Expand description

Authentication helpers for Bilibili live danmaku WebSocket client

Constants§

BUVID_INIT_URL
DANMAKU_SERVER_CONF_URL
ROOM_INIT_URL
UID_INIT_URL
USER_AGENT

Functions§

get_cookies_or_browser
Get Bilibili cookies from browser (preferred, newest), then fallback to provided cookie string
init_buvid
Initializes the buvid by sending a request and extracting the ‘buvid3’ cookie.
init_host_server
init_room
Initializes the room by sending a request with the given room ID.
init_uid