Skip to main content
Some platforms require a valid browser session cookie to:
  • Access the live stream data at all (e.g. Douyin, Taobao)
  • Unlock higher quality tiers (original / ultra-HD)
  • Avoid rate limiting or bot detection
Cookies are configured in the [Cookie] section of config/config.ini.
Cookies expire. If recording suddenly fails with an authentication or quality error, refresh the cookie for that platform. How often they expire varies by platform — some last days, others weeks.
1

Open the platform in your browser

Log in to the streaming platform in a desktop browser (Chrome or Firefox recommended).
2

Open DevTools

Press F12 (or Cmd+Option+I on macOS) to open the browser developer tools.
3

Go to the Network tab

Reload the page. In the Network tab, click on any request to the platform’s domain.
4

Copy the Cookie header

In the Headers section of the request, find the Cookie: request header. Copy the entire value.
5

Paste into config.ini

Paste the value after the = sign for the corresponding platform in config/config.ini.
Each platform has its own cookie field. Only fill in the platforms you intend to record.
config/config.ini
[Cookie]
# Required for Douyin
抖音cookie = <your_douyin_cookie>

快手cookie =
tiktok_cookie =
虎牙cookie =
斗鱼cookie =
yy_cookie =
b站cookie =
小红书cookie =
bigo_cookie =
blued_cookie =
sooplive_cookie =
netease_cookie =
千度热播_cookie =
pandatv_cookie =
猫耳fm_cookie =
winktv_cookie =
flextv_cookie =
look_cookie =
twitcasting_cookie =
baidu_cookie =
weibo_cookie =
kugou_cookie =
twitch_cookie =
liveme_cookie =
huajiao_cookie =
liuxing_cookie =
showroom_cookie =
acfun_cookie =
changliao_cookie =
yinbo_cookie =
yingke_cookie =
zhihu_cookie =
chzzk_cookie =
haixiu_cookie =
vvxqiu_cookie =
17live_cookie =
langlive_cookie =
pplive_cookie =
6room_cookie =
lehaitv_cookie =
huamao_cookie =
shopee_cookie =
youtube_cookie =
taobao_cookie =
jd_cookie =
faceit_cookie =
migu_cookie =
lianjie_cookie =
laixiu_cookie =
picarto_cookie =

[Authorization] section

PopkonTV uses a token-based authorisation header instead of a cookie.
config/config.ini
[Authorization]
popkontv_token =
Set popkontv_token to the value of the Authorization bearer token found in your browser’s network requests to the PopkonTV API.

[账号密码] section — username/password login

Some platforms support automatic login using a username and password. DouyinLiveRecorder will log in automatically, retrieve a fresh session cookie, and store it back in config.ini.
config/config.ini
[账号密码]
sooplive账号 =
sooplive密码 =

flextv账号 =
flextv密码 =

popkontv账号 =
partner_code = P-00001
popkontv密码 =

twitcasting账号类型 = normal
twitcasting账号 =
twitcasting密码 =
sooplive账号 / sooplive密码
SOOP (AfreecaTV) account credentials. Used to log in and obtain a session cookie automatically.
flextv账号 / flextv密码
TTingLive (FlexTV) account credentials.
popkontv账号 / popkontv密码
PopkonTV account credentials. Also requires partner_code — the partner code shown in the PopkonTV live URL (e.g. P-00117).
partner_code
default:"P-00001"
PopkonTV partner code. Find it in the live room URL after partnerCode=.
twitcasting账号类型
default:"normal"
TwitCasting login type. Use normal for a standard TwitCasting account.
twitcasting账号 / twitcasting密码
TwitCasting account credentials.
When credentials are provided, DouyinLiveRecorder automatically refreshes the cookie on the next recording session and writes the updated value back into config.ini.

Build docs developers (and LLMs) love