轻松访问音乐信息和歌曲音频链接 | 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,number)
作用:获得指定关键词的歌曲
-
keyword:关键词 number:返回歌曲数量,可选,默认20 api:自行部署neteasecloudmusicapi的地址
-
关键词可为 歌手/歌曲名/专辑名
返回值类型:列表
AZMusicAPI.geturl(id)
作用:获取音乐的音频地址
- 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.6.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for AZMusicAPI-1.4.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3667db6ad71280ef63f97438ef60fc9436329010c45f73ae6907bdfda5ba9858 |
|
MD5 | 63a190de62e05d074a615e490b7890e6 |
|
BLAKE2b-256 | e39f6e6089ed7b210f825a6ce684d006e1d1a8d3438058eed5b3e3bf3ca62b45 |