Skip to main content

NetEase Music Api

Project description

NetEaseMusicApi
===============

NetEase Music Api that comes from musicbox project. Ui-related parts are elimated, so as to be used at other places.

**Install**

.. code:: shell
pip install MusicBoxApi


**Example**

.. code:: python

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())

Project details


Release history Release notifications

History Node

1.0.9

History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

This version
History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
MusicBoxApi-1.0.4.tar.gz (11.8 kB) Copy SHA256 hash SHA256 Source None May 20, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page