NeteaseCloudMusic APIs for Python 3.x 适用于 Python 3 的网易云音乐 API
Project description
PyNCM
安装
pip install pyncm
使用
usage: __main__.py [-h] [--template 模板] [--quality 音质] [--output 输出] [--lyric-no 跳过歌词 [跳过歌词 ...]] [--phone 手机] [--pwd 密码] 链接
PyNCM 网易云音乐下载工具
positional arguments:
链接 网易云音乐分享链接
optional arguments:
-h, --help show this help message and exit
下载:
--template 模板 保存文件名模板
参数:
id - 网易云音乐资源 ID
year - 出版年份
no - 专辑中编号
album - 专辑标题
track - 单曲标题
title - 完整标题
artists- 艺术家名
例:
{track} - {artists} 等效于 {title}
--quality 音质 音频音质(高音质需要 CVIP)
参数:
lossless - “无损”
high - 较高
standard - 标准
--output 输出 输出文件夹
歌词:
--lyric-no 跳过歌词 [跳过歌词 ...]
跳过某些歌词类型的合并
参数:
lrc - 源语言歌词
tlyric - 翻译后歌词
romalrc- 罗马音歌词
例:
--lyric-no tlyric romalrc 将只下载源语言歌词
登陆:
--phone 手机 网易账户手机号
--pwd 密码 网易账户密码
使用示例
python -m pyncm http://music.163.com/song?id=31140560 --phone... --password...
python -m pyncm http://music.163.com/album?id=3111188&userid=315542615 ...
其他功能详见
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
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.6.3.6.tar.gz
(31.3 kB
view details)
Built Distribution
pyncm-1.6.3.6-py3-none-any.whl
(37.0 kB
view details)
File details
Details for the file pyncm-1.6.3.6.tar.gz
.
File metadata
- Download URL: pyncm-1.6.3.6.tar.gz
- Upload date:
- Size: 31.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c84edd8c38fa170582c5f2ab5fc578b7bee4518477b356166196208854ca33d |
|
MD5 | 32c327fb967fb98c76f7f22653bb2762 |
|
BLAKE2b-256 | 7a64cefa19beca65233f67fd266827b8a2a199c3ffc4c856d521796d208451f2 |
File details
Details for the file pyncm-1.6.3.6-py3-none-any.whl
.
File metadata
- Download URL: pyncm-1.6.3.6-py3-none-any.whl
- Upload date:
- Size: 37.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba989c1ae862e81d4ebc003eb12582b58b201a7b0f7c769fc4a455b9294955a3 |
|
MD5 | c9a7d37435d989b9f6ba0ed1f95a0ab0 |
|
BLAKE2b-256 | a5f70593742a7d2dcbbf2cda292689ce0a9488d23484f392d454b3bba30976c5 |