- This program is written based on
Python 3.8.8
, the code is readable and easy to transplant; - Parameters can be used for direct control, which is convenient for use in server;
- Only one line of code is needed to download the video, omitting tedious operations;
- Automatically synthesize video, and also can separate audio and video for download;
- Can obtain audio and video streams of different definitions, and can be selectively downloaded;
- If the main download line is blocked during the download process, the software will automatically select the alternate line for downloading;
- Can download paid cartoon or VIP high-quality video (Updated 2021-10-06);
- Downloadable segmented video batches (Updated 2021-10-06);
- Downloadable interactive video (Updated 2021-10-22);
- You can use IP proxy or SSR to remove regional resource access restrictions (Updated 2021-11-05);
- Add BiliBili music exploration and download function (Updated 2021-11-05).
Installation:
- First make sure that your Python version is 3.8.8 or above, and then build the environment according to the following code;
git clone https://github.com/JimmyLiang-lzm/biliDownloader.git
cd biliDownloader
pip3 install -r requirements.txt
-
Download the FFMpeg program, 👉click here 👈 and enter the official website to download:
- Windows deployment: After decompressing the downloaded compressed package, copy the
ffmpeg.exe
from the compressed file and paste it into the root directory of thebiliDownloader
program. - **Ubuntu deployment: **You can use the following code for simple installation. If you need to use a latest version, please download and compile it from the official website.
sudo add-apt-repository -y ppa:djcj/hybrid sudo apt update sudo apt install -y ffmpeg
- Windows deployment: After decompressing the downloaded compressed package, copy the
-
Change the initialization parameters, enter the
setting.conf
file in the root directory, and modify theXXX
in"sys":"XXX"
to the system platform you are using. Please change towindows
when using Windows platform, and change toubuntu
when using Ubuntu platform.
Use:
You can directly use the following code to view the video download address, where HTTPAddress
represents the web page address:
python3 bili_Download.py -a HTTPAddress -c
You can directly use the following code to download, OutputPath
represents the output folder:
python3 bili_Download.py -a HTTPAddress -o OutputPath
Installation:
- Enter the release from this project to download, and unzip after downloading;
- Download the FFMpeg program, 👉click here👈 to download. After finished, unzip "bin->ffmpeg.exe" to the "bili_Download" folder.
- Change the initialization parameters. Open the
setting.conf
file in the root folderbili_Download
, and modify theXXX
in"sys":"XXX"
towindows
.
Use:
In order to facilitate use in Windows, please click on batch script Start.bat
in the unzipped directory. To check the video download address, you can directly use the following code to view, where HTTPAddress
represents the web page address:
bili_Download.exe -a HTTPAddress -c
You can directly use the following code to download, OutputPath
represents the output folder:
bili_Download.exe -a HTTPAddress -o OutputPath
If you DO NOT use batch scripts, you need to add absolute address before bili_Download.exe
.
In order to use this program correctly, the parameters are as follows:
-a
,--address
: Enter the HTTP/HTTPS address of the video page, if the parameter does not contain-ma
,--music-address
,-v
,--version
,-h
,--help
, then this item is required;-ma
,--music-address
: Enter the HTTP/HTTPS address of the music page, if the parameter does not contain-a
,--address
,-v
,--version
,-h
,--help
, then this item is required;-o
,--output
: Download the video to the local output folder address, the default value is the program root directory;-vq
,--video-quality
: Select the video resolution, accept the data type as integer data, you can use-c
or--check
to view, the default value is 0;-ar
,--audio-quality
: Select audio quality, accept data type as integer data, you can use-c
or--check
to view, the default value is 0;-s
,--synthesis
: Whether to perform synthesis after the video is downloaded, only0
or1
is supported. Among them,0
means no synthesis,1
means synthesis; the default value is1
; this The option can only be realized after the deployment of FFMpeg!-c
,--check
: Check whether there are audio streams and video streams available for download on the video page, and display them; when this parameter appears, no video download will be performed;-i
,--interact
: Download the entire interactive video;-v
,--version
: View software version information;-h
,--help
: Display software help information.
VIP video download has been updated on October 6, 2021, you can paste your VIP cookie into the XXX of the root directory setting.conf
file "cookie":"XXX"
. You can try to use -c
, --check
to check. How to get cookies please click here🤞
Fill in your known proxy IP address and port number in the form of http://(IP):(Port)
into the XXX of the root directory setting.conf
file "Proxy":"XXX"
, Such as "Proxy":"http://127.0.0.1:1080"
.
This project is protected by the GPL-3.0 license agreement, all programs are only used for learning and communication, please DO NOT use it for any commercial purposes!
💖💖If you find this program useful, please don’t hesitate to leave a Star or fork, thank you very much!💖💖