{"id":19000170,"url":"https://github.com/wzpan/musicboxapi","last_synced_at":"2025-04-22T17:05:37.074Z","repository":{"id":55496126,"uuid":"91337420","full_name":"wzpan/MusicBoxApi","owner":"wzpan","description":"从网易云音乐Musicbox项目抽离出来的API，去掉了界面相关逻辑。","archived":false,"fork":false,"pushed_at":"2020-12-27T02:01:09.000Z","size":31,"stargazers_count":29,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T10:51:00.945Z","etag":null,"topics":["api","netease","netease-cloud-music","netease-music"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wzpan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-15T12:51:38.000Z","updated_at":"2024-08-21T03:39:32.000Z","dependencies_parsed_at":"2022-08-15T01:50:13.243Z","dependency_job_id":null,"html_url":"https://github.com/wzpan/MusicBoxApi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wzpan%2FMusicBoxApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wzpan%2FMusicBoxApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wzpan%2FMusicBoxApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wzpan%2FMusicBoxApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wzpan","download_url":"https://codeload.github.com/wzpan/MusicBoxApi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250285662,"owners_count":21405296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","netease","netease-cloud-music","netease-music"],"created_at":"2024-11-08T18:06:27.272Z","updated_at":"2025-04-22T17:05:37.051Z","avatar_url":"https://github.com/wzpan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MusicBoxApi\n\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE.txt)\n[![versions](https://img.shields.io/pypi/v/MusicBoxApi.svg)](https://pypi.python.org/pypi/MusicBoxApi/)\n[![platform](https://img.shields.io/badge/python-2.7-green.svg)]()\n[![platform](https://img.shields.io/badge/python-3.5-green.svg)]()\n\n从 musicbox 网易云音乐 CLI 播放器抽离出来的 API ，去掉了界面相关的逻辑，方便在其他程序中复用。\n\n## 安装\n\n``` sh\npip install MusicBoxApi\n```\n\n## 使用示例\n\n``` py\nfrom MusicBoxApi import api as NetEaseApi\n\ndef get_top_songlist():\n    netease = NetEaseApi.NetEase()\n    music_list = netease.top_songlist()\n    datalist = netease.dig_info(music_list, 'songs')\n    playlist = []\n    for data in datalist:\n        music_info = {}\n        music_info.setdefault(\"song_name\", data.get(\"song_name\"))\n        music_info.setdefault(\"artist\", data.get(\"artist\"))\n        music_info.setdefault(\"album_name\", data.get(\"album_name\"))\n        music_info.setdefault(\"mp3_url\", data.get(\"mp3_url\"))\n        music_info.setdefault(\"playTime\", data.get(\"playTime\"))\n        music_info.setdefault(\"quality\", data.get(\"quality\"))\n        playlist.append(music_info)\n    return playlist\n\nprint(get_top_songlist())\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwzpan%2Fmusicboxapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwzpan%2Fmusicboxapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwzpan%2Fmusicboxapi/lists"}