PRO-2684 / Bili-Crawer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

License:MIT License


Languages

Language:Python 100.0%