轻松访问音乐信息和歌曲音频链接 | 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无关
安装
pip install AZMusicAPI
AZMusicAPI模块使用指南
AZMusicAPI.getmusic(keyword)
作用:获得指定关键词的歌曲
-
keyword:关键词
-
关键词可为 歌手/歌曲名/专辑名
返回值说明:正常返回列表 "Error 0":没有结果 "Error 1":用户未输入
AZMusicAPI.geturl(rid,reqId)
作用:获取音乐的音频地址
- rid:你要解析的歌曲在getmusic返回的rid
- reqId:你要解析的歌曲在getmusic返回的reqId
返回值:正常返回音频链接 "Error 3":歌曲需要单曲付费或rid/reqId不正确
代码示例
仅需7行代码即可完成一个音乐音频地址获取器
import AZMusicAPI as MusicAPI
u=input("请输入您需要的歌曲名称:")
data=MusicAPI.getmusic(u)
song=data[0]["songname"]
singer=data[0]["singer"]
print("歌曲名:{} 歌手:{}".format(song,singer))
print(MusicAPI.geturl(data[0]["rid"],data[0]["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-0.9.8.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file AZMusicAPI-0.9.8.tar.gz
.
File metadata
- Download URL: AZMusicAPI-0.9.8.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bd6b013e06663b780535a67b6d86ccac51e80b892144698c8200de08320ddc9 |
|
MD5 | ebd85558a1b0bd7d4a4bf35172a882f8 |
|
BLAKE2b-256 | 6a9696324951bc69b4716d2f759438b6e2e37603b9c4151662f9b44776e14e84 |
Provenance
File details
Details for the file AZMusicAPI-0.9.8-py3-none-any.whl
.
File metadata
- Download URL: AZMusicAPI-0.9.8-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 304c6bda001595634ecc1e5407beea09ee103f1ca8ad70425366754eaf38c16e |
|
MD5 | 383dd2f5c0611fc2423523c2138cc596 |
|
BLAKE2b-256 | d6961d323dd66a67c8246e76a5bd78aa96f864ff2b366ed4a861223fdc1c28e7 |