Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aoout/bilimusic
BiliMusic helps you to download mp3 music file from bilibili video. Compared to a lot of same type applications and scripts, BiliMusic can do more, it can set metadata on mp3 file automatically.
https://github.com/aoout/bilimusic
bilibili bilibili-download
Last synced: 12 days ago
JSON representation
BiliMusic helps you to download mp3 music file from bilibili video. Compared to a lot of same type applications and scripts, BiliMusic can do more, it can set metadata on mp3 file automatically.
- Host: GitHub
- URL: https://github.com/aoout/bilimusic
- Owner: aoout
- Archived: true
- Created: 2022-05-29T12:55:35.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T23:56:04.000Z (over 1 year ago)
- Last Synced: 2024-07-31T02:17:12.262Z (3 months ago)
- Topics: bilibili, bilibili-download
- Language: Python
- Homepage:
- Size: 7.27 MB
- Stars: 12
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-bilibili-extra - Bilimusic - 从哔哩哔哩视频下载 mp3 文件.![Python](svg/python.svg?raw=true) ![Cli](svg/terminal.svg?raw=true) (下载工具 / 直播脚本)
README
# BiliMusic
BiliMusic helps you to download `mp3` music file from `bilibili` video.
Compared to a lot of same type applications and scripts, **BiliMusic can do more, it can set metadata on mp3 file automatically.**## How to Install
```
pip install bilimusic
```## Basic Usage
You can just type that to install a music:
```
bilimusic music BV1us411X7hb
```Or, you can use the av number(broken now):
```
bilimusic music 4188543
```Url is ok, the same time.
```
bilimusic music https://www.bilibili.com/video/BV1us411X7hb?spm_id_from=333.337.search-card.all.click
```the music file will happen in the path where you type the command, and be set some metadata.
The metadata is gotten from bilibili website.
But, the metadata from bilibili is not very suitable, because it's a website website, not a music website.
Such as, the publisher may be different from artist, video title may include some metadata so that it can't be used by mp3 file directly, because that will be so messy.To solve the problem, you can input some data and flags when you download the music file.
```
bilimusic music BV1us411X7hb --title=四重罪孽 --artist=洛天依 --album=妄想症
```You can type that to check all the parameters and flags:
```
bilimusic --help
```So, that's what you get. You may see, the cover if cut to a square, and it looks a little out of place. You may wana to place the girl's face more in the middle.
![](attachment/001.png)
Then we can specify an offset amount for the cover (negative number means left, positive number means right), offset amount should be a float type value between -1.0 and 1.0.
if you specify offset as negative 1.0, then the image will be It will be displayed from the far left, and the same is true for 1.0.
You can type that to specify offset to cover:
```
bilimusic BV1us411X7hb --title=四重罪孽 --artist=洛天依 --album=妄想症 --offset=1.0
```And that's what you get.
![](attachment/002.png)
As you may have noticed, this song has multiple singers, but I only named one. This is because the players do not recognize the situation of multiple singers. So not only is it pointless to do that, it could also mess up your music collection.