Skip to main content

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)

Source distribution for MusicBoxApi 1.0.9
File Size Uploaded
MusicBoxApi-1.0.9.tar.gz 12.2 kB Details

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

Release history Release notifications | RSS feed

This release

1.0.9 This release

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page