A command-line tool for downloading videos from Bilibili using BV numbers or video URLs.
- Download videos via Bilibili video URL or BV number
- Support for single video or collection download
- Support for downloading favorite folders (both created and subscribed)
- Custom download directory selection
- Batch download for multi-part videos
- Video metadata fetching and display
- Real-time progress bar
- Auto-creation of collection directories
- Smart filename handling
- Skip existing files automatically
- Duration check for long videos
- Node.js v16 or above
- npm or yarn package manager
# Clone the repository
git clone https://github.com/yourusername/bv-downloader.git
# Enter the project directory
cd bv-downloader
# Install dependencies
npm install- Start the program:
npm start- Input video URL:
- Supports full Bilibili video URLs
- Supports favorite folder URLs
- Examples:
- Video: https://www.bilibili.com/video/BV1xx411c7mD
- Created favorites: https://space.bilibili.com/user/favlist?fid=xxx&ftype=create
- Subscribed favorites: https://space.bilibili.com/user/favlist?fid=xxx&ftype=collect
- Configure global settings:
- Choose whether to skip duration check for long videos
- Set custom download directory
- Choose download mode (for single video URLs):
- Option 1: Download single video
- Option 2: Download entire collection (if available)
- Ensure sufficient disk space
- Maintain internet connection during download
- Videos are downloaded in original quality
- Collections will be saved in dedicated folders
This tool is for personal learning and research purposes only. The author assumes no responsibility for any consequences resulting from the use of this tool. Users should:
- Use this tool in compliance with relevant laws and regulations
- Respect copyright and intellectual property rights
- Bear all risks and responsibilities arising from the use of this tool
- Not use this tool for any commercial purposes
- Not use this tool to download unauthorized content
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to the Bilibili API
- All contributors to this project
