/Bili-Crawer

Primary LanguagePythonMIT LicenseMIT

Bili-Crawer

Code style: black

🪄 Functions

  • Comments crawling
  • Danmakus crawling
  • Video downloading

Your stars are highly welcomed.

📥 Installation

  1. pip install -r requirements.txt.
  2. Download dm_pb2.py and bili-crawer.py.

📖 Usage

bili-crawer.py [-h] [-o OUTPUT] [-v] [-c] [-d] [-O] [-p PAGELIST] [-l] target
positional arguments:
  target                🎯 A string with target BV id in it, for example "prefixbV1GJ411x7h7suffix".

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        📂 Output directory.
  -v, --video           🎥 If included, download video(s).
  -c, --comment         💬 If included, download comments.
  -d, --danmaku         ☁️ If included, download danmakus.
  -O, --overwrite       ⛔ If included, force overwrite files/folders.
  -p PAGELIST, --pagelist PAGELIST
                        👉 Specify which parts in the pagelist you'd like to download.
  -l, --playlist        📃 If included, download the whole playlist.

🪧 Demo

Pictures

In progress Finished

Asciinema

asciicast Due to the use of nerd fonts and emojis, asciinema replay might not be so satisfying. You might as well download the record file bili.cast and replay locally.