English/English
Bilibili video and barrage downloader developed based on Node.js and Electron.
Features currently implemented:
Query video details and obtain video download address based on video URL
Obtain the content of the video barrage based on the video cid
and support conversion to download format ( .xml
or .ass
)
Download video and audio files (formats are .mp4
and .m4a
respectively), support resumed downloading
Current limitations:
Due to Bilibili restrictions, only low-definition videos can be obtained without logging in
The downloaded video and audio are separate files and need to be merged manually using tools such as ffmpeg
You need to install Git and Node.js (and npm) to run this program.
An important dependency of this program is Electron. If your network environment is restricted, please set the following environment variables first, and then execute the following commands to install it through the mirror:
export ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/" #General *NIX command line set ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ #Use Windows CMD command line $env:ELECTRON_MIRROR= "https://npmmirror.com/mirrors/electron/" # Windows PowerShell
Enter at the command line:
# Clone this warehouse git clone https://github.com/stevenjoezhang/bilibili-downloader.git# Enter the directory cd bilibili-downloader# Install dependencies npm install# Start! npm start
If everything goes well, a new window named "Mimi Downloader" will open. Enter the video link (for example https://www.bilibili.com/video/BV1z4411p7Lq) and follow the prompts to download the video.
Once the download is complete, you can use ffmpeg to merge the video and audio into a single file:
ffmpeg -i input_video.mp4 -i input_audio.m4a -c:v copy -c:a aac output_file.mp4
See https://trac.ffmpeg.org/wiki/Concatenate
Bili Download Ji and its cross-platform version are also good choices, allowing you to download high-definition videos after logging in by scanning the QR code.
downkyi by leiurayer
downkyicore by yaobiao131
If you need more powerful command line tools, the following repositories may be helpful. If you need to download high-definition videos, you may need to set cookies manually.
you-get by soimort, MIT license
lux by iawia002
youtube-dl by ytdl-org
There are some other libraries and browser plugins for reference.
XML to ASS library and bilibili ASS Danmaku Downloader by tiansh, Mozilla Public License 2.0
bilitwin by Xmader
bili-api by simon300000
GNU General Public License v3
http://www.gnu.org/licenses/gpl-3.0.html
This software is distributed under the GPL-3.0 license.
In particular, please be aware that
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
Translated to human words:
In case your use of the software forms the basis of copyright infringement, or you use the software for any other illegal purposes, the authors cannot take any responsibility for you.
We only ship the code here, and how you are going to use it is left to your own discretion.
Display the information of the user who sent the comment
Automatically splice audio and video
Check login status