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,server)
-
keyword:关键词 number:返回歌曲数量,可选,默认20 api:自行部署音乐服务器的地址,bili无需 cookie:访问API携带的Cookie,可选 server: 使用的API(可选,默认ncma。可选值:ncma,qqma,bili)
-
关键词可为 歌手/歌曲名/专辑名 bili通道不可以为BV号!!
返回值类型:列表
获取音乐的音频地址
geturl(id,api,cookie,server)
- id:歌曲ID api:自行部署API的地址 cookie:访问API携带的Cookie,可选 server: 使用的API(可选,默认ncma。可选值:ncma,qqma)
bili通道不支持!请自行使用其他库编写
- id:歌曲的id
返回值类型:字符串
错误返回
- "Error 0":没有结果
- "Error 1":用户未输入
- "NetworkError":网络错误 / 服务器宕机 / IP被封禁
Metadata
Release files for AZMusicAPI 1.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| AZMusicAPI-1.6.0.tar.gz | 3.5 kB | Without provenance | Details for AZMusicAPI-1.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| AZMusicAPI-1.6.0-py3-none-any.whl | Python 3 | none | any | Details for AZMusicAPI-1.6.0-py3-none-any.whl |
Total release size: 12.8 kB
Release files / AZMusicAPI-1.6.0.tar.gz
| Download URL | AZMusicAPI-1.6.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1e1a9ed3a4c23bfcec263065b1b01e2157691c0ef4e06eaffee5a46fb792141
|
|
BLAKE2b-256 checksum How to use checksums |
590df7ebcdf09850743c73ef9612caf537f6c1ff4b61519fa8119ea8e607cea9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.5
|
Release files / AZMusicAPI-1.6.0-py3-none-any.whl
| Download URL | AZMusicAPI-1.6.0-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
adb94b4253ee1d2ef53031db2dec899337648b8e907ec09f1782332ef8c19487
|
|
BLAKE2b-256 checksum How to use checksums |
a7cf71d4e821cb918486e867d7f19ad6132755ce83fabd3ab2dcd85a2aa63d65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.5
|
Security for AZMusicAPI 1.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.