NetEaseMusicApi
NetEase Music Api that comes from musicbox project. Ui-related parts are elimated, so as to be used at other places.
Install
pip install MusicBoxApi
Example
from MusicBoxApi import api as NetEaseApi
def get_top_songlist():
netease = NetEaseApi.NetEase()
music_list = netease.top_songlist()
datalist = netease.dig_info(music_list, 'songs')
playlist = []
for data in datalist:
music_info = {}
music_info.setdefault("song_name", data.get("song_name"))
music_info.setdefault("artist", data.get("artist"))
music_info.setdefault("album_name", data.get("album_name"))
music_info.setdefault("mp3_url", data.get("mp3_url"))
music_info.setdefault("playTime", data.get("playTime"))
music_info.setdefault("quality", data.get("quality"))
playlist.append(music_info)
return playlist
print(get_top_songlist())
Metadata
Release files for MusicBoxApi 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| MusicBoxApi-1.0.9.tar.gz | 12.2 kB | Without provenance | Details for MusicBoxApi-1.0.9.tar.gz |
Release files / MusicBoxApi-1.0.9.tar.gz
| Download URL | MusicBoxApi-1.0.9.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a8ac6f0687a1bf56437c20ab9709e76c09895e0bd8a422776fdcd60834cd03d
|
|
BLAKE2b-256 checksum How to use checksums |
e26499bcf6933cf912b603f6de0ba36854d55e5f8898a29e7fe87cf4d997b30b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for MusicBoxApi 1.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.