SoFunction
Updated on 2024-11-12

Use python to download the songs we want to listen to, the speed is super fast!

Here found a can be under the song of the tool pymusic-dl, very good, of course, paid songs can not be down, integrated with a lot of music library songs!

First install pymusic-dl

pip install pymusic-dl

If you find out carefully, you'll see that this pip is actually only info after installation, so I see the download file for later installation

git clone /0xHJK/

cd music-dl

python3 install

The installation is now complete.

Try it:

[root@VM_0_9_centos ~]# music-dl --help
Usage: music-dl [OPTIONS]
 
 Search and download music from netease, qq, kugou, baidu and xiami.
 Example: music-dl -k "Jay."
 
Options:
 --version    Show the version and exit.
 -k, --keyword TEXT Search Keywords,Simultaneous input of song title and artist improves matching(as if empty sailor Peking opera)
 -u, --url TEXT  Pass the assigned songURLDownload Music
 -p, --playlist TEXT Adoption of the designated song listURLDownload Music
 -s, --source TEXT  Supported Data Sources: baidu
 -n, --number INTEGER Limitation on the number of searches
 -o, --outdir TEXT  Specify the output directory
 -x, --proxy TEXT  Designated Agent(as ifhttp://127.0.0.1:1087)
 -v, --verbose   Detailed model
 --lyrics    Download lyrics at the same time
 --cover    Download the cover at the same time
 --nomerge    No sorting and de-duplication of search result listings
 --help    Show this message and exit.

Search for the song:

[root@VM_0_9_centos ~]# music-dl -k "Angela Chang"
 
Searching Angela Chang (1982-), * pop singer and actress from ... NETEASE ... QQ ... KUGOU ... BAIDU ...
+------+-------------------------+----------------+---------+---------+---------------------------+---------+
| serial number | song title     | vocalists   | adults and children | length of time | special collection of printed or broadcast material      | source (of information etc) |
+------+-------------------------+----------------+---------+---------+---------------------------+---------+
| 0 | Cult of Joy    | Pan Wei Bai (1979-), * singer、Angela Chang (1982-), * pop singer and actress | 3.16MB | 0:03:27 | WU HA      | NETEASE |
| 1 | protective coloration     | Lin Junjie or JJ Lin (1963-), * pop star,Angela Chang (1982-), * pop singer and actress | 7.6MB | 0:03:19 | She said. Conceptual Selection   | BAIDU |
| 2 | Faded (Live)   | Angela Chang (1982-), * pop singer and actress、Xiao War (1911-1949), Chinese * leader, President of the * from 1911-1949 | 4.02MB | 0:04:23 | Voice of China's Dream·Our Song (prefix indicating ordinal number, e.g. first, number two etc)9a period of time | KUGOU |
| 3 | things can only get better (Live)  | Angela Chang (1982-), * pop singer and actress、Wang Clip (1982-), winner of the Nobel Prize in Literature | 3.79MB | 0:04:08 | The voice of Providence. (prefix indicating ordinal number, e.g. first, number two etc)2a period of time   | QQ  |
| 4 | Invisible Wings    | Angela Chang (1982-), * pop singer and actress(Angela (music)) | 8.64MB | 0:03:44 | fly together     | BAIDU |
| 5 | Invisible Wings (Live)  | Angela Chang (1982-), * pop singer and actress   | 8.42MB | 0:03:40 | 隐藏的vocalists (prefix indicating ordinal number, e.g. first, number two etc)六a period of time   | NETEASE |
| 6 | Invisible Wings    | Angela Chang (1982-), * pop singer and actress   | 3.42MB | 0:03:44 | Pandora     | KUGOU |
| 7 | artful (Live)    | Angela Chang (1982-), * pop singer and actress   | 4.9MB | 0:05:21 | vocalists(prefix indicating ordinal number, e.g. first, number two etc)二季 (prefix indicating ordinal number, e.g. first, number two etc)2a period of time   | QQ  |
| 8 | The Lost Beauty (Live)  | Angela Chang (1982-), * pop singer and actress   | 10.53MB | 0:04:36 | 隐藏的vocalists (prefix indicating ordinal number, e.g. first, number two etc)六a period of time   | NETEASE |
| 9 | Keep walking in the rain.    | Angela Chang (1982-), * pop singer and actress   | 3.13MB | 0:03:24 | Tangible Wings    | QQ  |
| 10 | aurora (Live)   | Angela Chang (1982-), * pop singer and actress   | 4.49MB | 0:01:57 | 隐藏的vocalists (prefix indicating ordinal number, e.g. first, number two etc)六a period of time   | NETEASE |
| 11 | aurora     | Angela Chang (1982-), * pop singer and actress   | 4.0MB | 0:04:21 | aurora     | QQ  |
| 12 | dear,That's not love.  | Angela Chang (1982-), * pop singer and actress   | 3.92MB | 0:04:16 | Ang 5.0     | QQ  |
| 13 | dearThat's not love. (Live) | Angela Chang (1982-), * pop singer and actress   | 10.58MB | 0:04:37 | 隐藏的vocalists (prefix indicating ordinal number, e.g. first, number two etc)六a period of time   | NETEASE |
+------+-------------------------+----------------+---------+---------+---------------------------+---------+
 
请importation下载serial number,Supported by something like 0 3-5 8 formats,importation N Skip Download
 >>: 0
 
===============================================================
0 | Cult of Joy | Pan Wei Bai (1979-), * singer、Angela Chang (1982-), * pop singer and actress | 3.16MB | 0:03:27 | WU HA | NETEASE
 :: Downloading ... [####################################] 100%
 :: Saved to: /root/Pan Wei Bai (1979-), * singer、Angela Chang (1982-), * pop singer and actress - Cult of Joy.mp3
===============================================================
 
请importation要搜索的歌曲,maybeCtrl+Cabort

We can see that the file has been downloaded to the path shown above, the speed is really fast, if you can't get down, it may be a paid song!

Above this use python to realize the download we want to listen to the song, the speed of super-fast is what I share with you all, I hope to be able to give you a reference, but also hope that you support me more.