Skip to main content

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

Project description

you-live

Live Recorder

A live recorder focus on China mainland livestream sites.
Brother Repo of BilibiliLiveRecorder(java)


:dolphin:Installation

Linux/debian:

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

Windows:

    install python3 from python.org
    pip install --upgrade you-live

Other Linux: please follow debian

Other OS: please DIY.

:dolphin:Usage

you-live [-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

you-live bili 6

Example1

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

you-live -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.

you-live -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

:dolphin:LICENSE

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

you-live-1.1.5.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

you_live-1.1.5-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

Details for the file you-live-1.1.5.tar.gz.

File metadata

  • Download URL: you-live-1.1.5.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.1 setuptools/58.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for you-live-1.1.5.tar.gz
Algorithm Hash digest
SHA256 3a18a2db04fc39fa05e969328b926f2f4f371be3f6d14f3b51c9ac53caa940bf
MD5 0c25fe0394f017f7bec79b07fdcfe7f6
BLAKE2b-256 d10ff04a979db41c8958040f3889f6e50e01c6f28807a9857f6a2d175cfe8ace

See more details on using hashes here.

File details

Details for the file you_live-1.1.5-py3-none-any.whl.

File metadata

  • Download URL: you_live-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 24.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.1 setuptools/58.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for you_live-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b9c158ebf5928913dc3ceb4897e783f358c3eff0d4fc1a1e75a4aad1bb233ec7
MD5 bedae17a02784f835508e7fd8794752b
BLAKE2b-256 b85b751d8aeac0cfad68961feec3c544ed4db979991e9a7132c2203924d5f070

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page