Skip to main content

轻松访问音乐信息和歌曲音频链接 | 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


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.5.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

AZMusicAPI-1.5.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file AZMusicAPI-1.5.1.tar.gz.

File metadata

  • Download URL: AZMusicAPI-1.5.1.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

Hashes for AZMusicAPI-1.5.1.tar.gz
Algorithm Hash digest
SHA256 b599e7d6d311392f1d2e681460762c4d33842e1a7370e5f6c0b2240b8bfd08df
MD5 e31c61b3caad986ebf52671ca656ce48
BLAKE2b-256 3f2dbb0db0b7cc562834bd9265cb6ddf8f0845c04a604ffa371cefc74ec4a3fd

See more details on using hashes here.

File details

Details for the file AZMusicAPI-1.5.1-py3-none-any.whl.

File metadata

  • Download URL: AZMusicAPI-1.5.1-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

Hashes for AZMusicAPI-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 abacda70ff2e83d3d2e676ac8a25ec6e00df85bdcb5a0fdd06a6c4197dacb05f
MD5 32ef90a03c2a4df28dba87858a8b219f
BLAKE2b-256 534a590902e928166a1ea9ad54aaa9d007c0cddecee83593a4850a093911b0d3

See more details on using hashes here.

Supported by

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