NeteaseCloudMusic APIs for Python 3.x 适用于 Python 3 的网易云音乐 API
Project description
PyNCM
安装
pip install pyncm
直接使用
python -m pyncm -h
说明
配置
-
pyncm config
会将本次输入参数存储于~/.pyncm
python -m pyncm config [arguments]
- 存储的参数
参数 | 说明 |
---|---|
--phone --password |
登录令牌;只会保存登录cookie |
--output |
输出文件夹 |
--clear-temp |
自动清除下载临时文件 |
--quality |
下载质量 |
--logging-level |
日志过滤等级 |
- 优先级: 若在使用中设置了其他参数,命令行的参数会作为该会话的设置
- 存储的参数均已加密
- 文件保存在
~/.pyncm
中
使用示例
下载歌曲
pyncm song --id [歌曲 ID]
下载歌单
pyncm playlist --id [歌单 ID]
下载专辑
pyncm album --id [专辑 ID]
其他功能详见
API 使用示例
>>> from pyncm import apis
>>> # 获取歌曲信息
>>> apis.track.GetTrackAudio(29732235)
`{'data': [{'id': 29732235, 'url': 'http://m701.music...`
>>> # 获取歌曲详情
>>> apis.track.GetTrackDetail(29732235)
`{'songs': [{'name': 'Supernova', 'id': 2...`
>>> # 获取歌曲评论
>>> apis.track.GetTrackComments(29732235)
`{'isMusician': False, 'userId': -1, 'topComments': [], 'moreHot': True, 'hotComments': [{'user': {'locationInfo': None, 'liveIn ...`
已实现的算法,APIs
Wiki - Pages Wiki - Cryptograhpy
PR
Credit
Binaryify/NeteaseCloudMusicApi
衍生项目
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
pyncm-1.5.3.tar.gz
(32.5 kB
view details)
Built Distribution
pyncm-1.5.3-py3-none-any.whl
(76.5 kB
view details)
File details
Details for the file pyncm-1.5.3.tar.gz
.
File metadata
- Download URL: pyncm-1.5.3.tar.gz
- Upload date:
- Size: 32.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 167cc5653d881fd8ef30d121ece77e1fd7c6bfac343a1f0485d9e24fbbce7372 |
|
MD5 | 929702c4e7be84d8524cd989ba98ddca |
|
BLAKE2b-256 | f2f196dec993ac7d273af325573854eac566c8b55e8d2f79759cc6339e01aaff |
File details
Details for the file pyncm-1.5.3-py3-none-any.whl
.
File metadata
- Download URL: pyncm-1.5.3-py3-none-any.whl
- Upload date:
- Size: 76.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c63cff2d93fd3f3d2d7f58b12d94d914000455bb9bd056c00056f7058308c8f |
|
MD5 | 1b41c1c5464d5531da7b3f58731aab82 |
|
BLAKE2b-256 | 293ef41ead734e3009b60d6a4a81259c6a239876804d23cc61b7ca30ad65bbca |