1 Star 2 Fork 1

JimmyLiang/biliDownloader

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README_EN.md 6.53 KB
一键复制 编辑 原始数据 按行查看 历史
JimmyLiang 提交于 2021-11-05 21:47 . 更新版本至(V4.0)

Bilibili Video Downloader😀

maven mavel mavel mavel maven

feature✨

  1. This program is written based on Python 3.8.8, the code is readable and easy to transplant;
  2. Parameters can be used for direct control, which is convenient for use in server;
  3. Only one line of code is needed to download the video, omitting tedious operations;
  4. Automatically synthesize video, and also can separate audio and video for download;
  5. Can obtain audio and video streams of different definitions, and can be selectively downloaded;
  6. If the main download line is blocked during the download process, the software will automatically select the alternate line for downloading;
  7. Can download paid cartoon or VIP high-quality video (Updated 2021-10-06);
  8. Downloadable segmented video batches (Updated 2021-10-06);
  9. Downloadable interactive video (Updated 2021-10-22);
  10. You can use IP proxy or SSR to remove regional resource access restrictions (Updated 2021-11-05);
  11. Add BiliBili music exploration and download function (Updated 2021-11-05).

How to use?🕹

1. Installation and use in Python environment

Installation:

  1. 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
  1. 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 the biliDownloader 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
  2. Change the initialization parameters, enter the setting.conf file in the root directory, and modify the XXX in "sys":"XXX" to the system platform you are using. Please change to windows when using Windows platform, and change to ubuntu 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

2. Installation and use under Windows

Installation:

  1. Enter the release from this project to download, and unzip after downloading;
  2. Download the FFMpeg program, 👉click here👈 to download. After finished, unzip "bin->ffmpeg.exe" to the "bili_Download" folder.
  3. Change the initialization parameters. Open the setting.conf file in the root folder bili_Download, and modify the XXX in "sys":"XXX" to windows.

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.

Parameters🛠

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, only 0 or 1 is supported. Among them, 0 means no synthesis, 1 means synthesis; the default value is 1; 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.

About VIP video download

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🤞

Proxy IP settings

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".

Declaration⚖

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!

Sponsor🤝

💖💖If you find this program useful, please don’t hesitate to leave a Star or fork, thank you very much!💖💖

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/zmtechn/biliDownloader.git
git@gitee.com:zmtechn/biliDownloader.git
zmtechn
biliDownloader
biliDownloader
master

搜索帮助

A270a887 8829481 3d7a4017 8829481