Skip to main content

iLive

Python-3-green require-requests-green require-PyExecJS-green

A live recorder for Chinese livestream sites. Fork of LiveRecorder.

This fork is independently released as iLive (ilive) because the upstream project is no longer maintained.


🐬Installation

Linux/debian:

    sudo apt-get install python3-pip
    pip3 install ilive --upgrade --user
    add ~/.local/bin to your PATH

Windows:

    install python3 from python.org
    pip install --upgrade ilive

Other Linux: please follow debian

Other OS: please DIY.

🐬Usage

ilive [-h] [-qn QN] [-debug] [-check] [-delete] [-save_path SAVE_PATH] [-check_path CHECK_PATH]
                [-format FORMAT] [-time_format TIME_FORMAT] [-cookies COOKIES] [-cookies_path COOKIES_PATH]
                liver id

B站/斗鱼/快手 直播视频录制

positional arguments:
  liver                 要录制的直播源,如 bili,douyu,kuaishou,acfun
  id                    要录制的房间号,可以从url中直接获取

optional arguments:
  -h, --help            show this help message and exit
  -qn QN, -q QN         录制的清晰度,可以后续输入
  -only_url, -ou        仅输出录制链接,然后退出
  -debug                debug模式
  -check                校准时间戳
  -delete, -d           删除原始文件
  -save_path SAVE_PATH, -sp SAVE_PATH
                        源文件保存路径
  -check_path CHECK_PATH, -chp CHECK_PATH
                        校正后的FLV文件保存路径
  -format FORMAT, -f FORMAT
                        文件命名格式
  -time_format TIME_FORMAT, -tf TIME_FORMAT
                        时间格式
  -cookies COOKIES, -c COOKIES
                        cookie, 当cookies_path未指定时生效
  -cookies_path COOKIES_PATH, -cp COOKIES_PATH
                        指定cookie文件位置

Example0

Record a live from https://live.bilibili.com/6

ilive bili 6

Example1

Record a live from https://www.douyu.com/593392, correct the timestamp error and delete the origin files.

ilive -check -d douyu 593392

Notice:The record on this site(douyu) uses PyExecJS.
You may need some extra installation about the JS Environment for linux OS.
Here’s the guide for Node.js installation

Notice:You may need logged-in cookies to get high quality videos

Example2

Record a live from https://live.kuaishou.com/u/ZFYS8888, speicify the file name you want.

ilive -format "{name}-{shortId} 的{liver}直播{startTime}" -cookies "clientid=3; did=web_0000000000000000000000000000000; client_key=00000000; xxx=xxx; ..." kuaishou ZFYS8888

Notice:You must need cookies(may not logged-in, just skip the captha test) to get room detail information

🐬LICENSE

AGPL-3.0-or-later.

The original LiveRecorder code remains available under its upstream MIT license; see LICENSE-MIT.txt. The fork changes and this distribution are released under AGPL-3.0-or-later; see LICENSE.txt.

Release files for ilive 2026.9.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ilive 2026.9.20
File Size Uploaded
ilive-2026.9.20.tar.gz 33.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ilive 2026.9.20
File Interpreter ABI Platform
ilive-2026.9.20-py3-none-any.whl Python 3 none any Details

Total release size: 70.6 kB

Release files / ilive-2026.9.20.tar.gz

Download URL ilive-2026.9.20.tar.gz
Size 33.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6f85962d6e7526b2e82dc9a971078416f74e5922688e668e98e6d2550f3e1146
BLAKE2b-256 checksum
How to use checksums
b62aed1fe8f028c984e7255649ef07488c83de7faa064c599db96970a3f0d1c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / ilive-2026.9.20-py3-none-any.whl

Download URL ilive-2026.9.20-py3-none-any.whl
Size 37.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf99283ec9e1a79a2179797c9d6e241d65e0e1dc5d06a33a9390ab4ad39bb06e
BLAKE2b-256 checksum
How to use checksums
623fafb9f8683c28e1baabf2bc8a650bab58b3c1ea94d271b6982e8df823da62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

2026.9.20 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page