This issue recommends a Python based NetEase cloud music command line version.
functional characteristics:
1.High quality music
2.Songs, artists, albums
3.NetEase selected song list
4.NetEase new song recommendation
5.Private playlist, daily recommendations
6.Local collection etc
install:
- mpg123 is used to play songs. See the instructions below to install MPG123
- python-fuzzywuzzy for fuzzy search
- aria2 for caching songs
- libnotify-bin for supporting message prompts (Linux)
- qtpy python-dbus dbus qt used to support desktop lyrics (either pyqt4 pyqt4 pyside pyside2 needs to be installed depending on the version of system qt)
- python-levenshtein for fuzzy search
macos install
pip3 install NetEase-MusicBox brew install mpg123
Linux install
Note: pip3 install -u NetEase-MusicBox may still need to be updated to the latest version.
Ubuntu/Debian
pip3 install NetEase-MusicBox sudo apt-get install mpg123
Arch Linux
pacaur -S netease-musicbox-git # or $ yaourt musicbox
Centos/Red Hat
sudo yum install -y python3-devel pip3 install NetEase-MusicBox wget http://mirror.centos.org/centos/7/os/x86_64/Packages/mpg123-1.25.6-1.el7.x86_64.rpm sudo yum install -y mpg123-1.25.6-1.el7.x86_64.rpm
Configuration and error handling
Profile address:
~/.config/netease-musicbox/config.json Configurable cache, shortcut keys, messages, desktop lyrics. Because the Song API only accepts access from within main,non-Chinese mainland users set your own proxy(You can use polipo to convert the socks5 proxy into an http proxy):
export http_proxy=http://IP:PORTexport https_proxy=http://IP:PORTcurl -L ip.cn
Show IP belongs China mainland area is fine。
mistake
If some songs cannot be played for a total time of 00:01, check whether it is caused by copyright problems.
If you cannot play musicbox on a specific terminal, first check whether mpg123 can be used normally on this terminal, and then check whether MusicBox can be used normally on other terminals. When reporting an issue, please inform the user about the above usage and the error message of the faulty terminal.
At the same time, you can run tail -f
~/.local/share/netease-musicbox/musicbox.logView logs yourself. mpg123 the latest version may report an error that the sound hardware cannot be found. The 1.25.6 version can be used normally.
Use
musicbox