Skip to main content

Nice API for developers who like music™

Project description

# MusicAPI ![GitHub](https://img.shields.io/github/license/kushao1267/MusicAPI.svg) ![Build](https://travis-ci.org/kushao1267/MusicAPI.svg?branch=master) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mozart.svg) [![codecov](https://codecov.io/gh/kushao1267/MusicAPI/branch/master/graph/badge.svg)](https://codecov.io/gh/kushao1267/MusicAPI)

## About MusicAPI当前仅支持`Python3.5`及以上.

它提供了国内许多音乐的API,支持通过`music_id`和`音乐链接`两种方式来获取歌曲信息及下载链接(版权、会员的除外)。 使用者可以很容易地添加其他音乐类的API。

目前已支持的音乐有: - [x] 网易云音乐 - [x] QQ音乐 - [x] 虾米音乐 - [ ] 喜马拉雅 - [ ] 百度音乐 - [ ] 酷狗音乐

注: 该仓库仅可用于学习和交流实验用途,若用于商业用途,与本人无关。

## Install 推荐方式 ` pip install mozart `

其他方式: ` git clone git@github.com:kushao1267/MusicAPI.git python setup.py install `

## Usage 在MusicAPI目录下:

1.使用music_id访问

` $ python -m mozart -n netease -l http://music.163.com/song/1358275974/\?userid\=1769873017 [Music] singer:李子璇 song:豆你玩 cover:http://p1.music.126.net/326BBneDl4izrTBF8vJJxA==/109951163993105848.jpg download_url:http://m10.music.126.net/20190419145523/620fa37967fa54ab80c9987dbaba8e4a/ymusic/045d/0e5d/0553/37a1dc7beb972befb40629f085a5eb39.mp3 `

2.使用music share url访问

` $ python -m mozart -n netease -m 1358275974 [Music] singer:李子璇 song:豆你玩 cover:http://p2.music.126.net/326BBneDl4izrTBF8vJJxA==/109951163993105848.jpg download_url:http://m10.music.126.net/20190419145641/41f171066b22d8e496b63ff67c6ca429/ymusic/045d/0e5d/0553/37a1dc7beb972befb40629f085a5eb39.mp3 `

## License [MIT License](https://github.com/kushao1267/facade/blob/master/LICENSE)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

mozart-1.0.3-py3.6.egg (21.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page