New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bldl

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bldl

A CLI tool for downloading Bilibili streams

latest
Source
npmnpm
Version
0.4.2
Version published
Weekly downloads
2
-91.67%
Maintainers
1
Weekly downloads
 
Created
Source

bldl

Just another CLI tool for downloading Bilibili streams

Install

Prerequisites: install ffmpeg for merging tracks and add it to env path. For Homebrew users:

brew install ffmpeg
npm install -g bldl

How to use

bldl --help

Commands:
  bldl <url> [output]      Download stream                             [default]
  bldl login <credential>  Login to download higher quality streams
  bldl whoami              Display Bilibili username

Positionals:
  url     URL to download stream from                                   [string]
  output  Path to save stream to                                        [string]

Options:
  --version          Show version number                               [boolean]
  --credential       Bilibili SESSDATA from browser Cookies             [string]
  -i, --interactive      Interactively download streams
                                                      [boolean] [default: false]
  --video-codec      Filter out video tracks by given codec, e.g. avc, hevc, av1
                     , or more exact codec string                       [string]
  --audio-codec      Filter out audio tracks by given codec             [string]
  --tmp-dir          Directory to save temporary tracks
                                         [string] [default: "{OS_TMP_DIR}/bldl"]
  --keep-tmp-tracks  Whether to keep temporary tracks after merging
                                                      [boolean] [default: false]
  --help             Show help                                         [boolean]

Examples

bldl login {SESSDATA_FROM_COOKIES} # Store Bilibli auth credential for downloading high quality streams

bldl BV1j4411W7F7 # UGC video
bldl https://www.bilibili.com/video/BV1j4411W7F7  # UGC video
bldl https://www.bilibili.com/bangumi/play/ep199612 # PGC episode
bldl https://www.bilibili.com/bangumi/play/ss12548 # PGC season

Or for one-off use:

npx bldl --credential={SESSDATA_FROM_COOKIES} https://www.bilibili.com/video/BV1j4411W7F7

License

MIT

Keywords

Bilibili

FAQs

Package last updated on 12 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts