轻松访问音乐信息和歌曲音频链接 | Easy access to music information and song audio links
Project description
AZMusicAPI
轻松访问音乐信息和歌曲音频链接 | Easy access to music information and song audio links
AZ Studio版权所有
该项目仅供娱乐 请勿用于违法事业 违者与AZ Studio无关
这是过时的说明文档
AZMusicAPI模块使用指南
安装
pip install AZMusicAPI
导入
import AZMusicAPI
函数使用
AZMusicAPI.getmusic(keyword,api,cookie,number)
作用:获得指定关键词的歌曲
-
keyword:关键词 number:返回歌曲数量,可选,默认20 api:自行部署neteasecloudmusicapi的地址 cookie:访问API携带的Cookie,可选 server: 使用的API(可选,默认ncma)
-
关键词可为 歌手/歌曲名/专辑名
返回值类型:列表
geturl(id,api,cookie,server)
- id:歌曲ID api:自行部署API的地址 cookie:访问API携带的Cookie,可选 server: 使用的API(可选,默认ncma)
作用:获取音乐的音频地址
- id:歌曲的id
返回值类型:字符串
错误返回
- "Error 0":没有结果
- "Error 1":用户未输入
- "NetworkError":网络错误 / 服务器宕机 / IP被封禁
- "Error 3":歌曲需要单曲付费或rid/reqId不正确
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
AZMusicAPI-1.4.8.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file AZMusicAPI-1.4.8.tar.gz
.
File metadata
- Download URL: AZMusicAPI-1.4.8.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51ed596a4c9a6f50acc70cee30356401ae4a4d08449505d61d9200a6402939e4 |
|
MD5 | f8c914252a2b98cf96671af640aad0e8 |
|
BLAKE2b-256 | bd164a727bff8f6a58d68878885406ab9c0e30404d59c9ce2758a2a8c388c6d7 |
File details
Details for the file AZMusicAPI-1.4.8-py3-none-any.whl
.
File metadata
- Download URL: AZMusicAPI-1.4.8-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fa667c642ff845778264f8d144eec387a4fc3ccea60d9395106fe5c582b032b |
|
MD5 | f88b818ea8a8e871026330c5f4af421f |
|
BLAKE2b-256 | 903ce87de93f47f0ea822c1577e075347a5d62ae9db92e8118bf108732e32919 |