YouTube音乐下载程序
ytmdl的Python项目详细描述
YouTube音乐下载程序
YTMDL在起作用
先决条件
- python 3.x
- ffmpeg
重要
每次更新后运行以下命令。
ytmdl -s
设置
Linux
从终端运行以下命令
# Install ffmpeg sudo apt-get install ffmpeg # Install ytmdl sudo pip install ytmdl # Setup the config file ytmdl -s
窗口
下载并提取回购协议。
在命令中运行以下命令
# Copy the config
python ytmdl.py -s
从here.下载ffmpeg
提取。
将bin中的三个文件复制到c:\ users\{username}\appdata\local\programs\python\python36\scripts\
用法
usage: ytmdl [-h][-q][--version][--url URL][-s][-l LIST][--nolocal][SONG_NAME] positional arguments: SONG_NAME Name of the song to download. optional arguments: -h, --help show this help message and exit -q, --quiet Dont ask the user to select songs if more than one search result. The first result in each case will be considered. --version show the program version number and exit --url URL Youtube song link. -s, --setup Setup the config file -l LIST, --list LIST Download list of songs. The list should have one song name in every line. --nolocal Dont search locally for the song before downloading.
对于windows,使用 支持的选项有: 感谢youtube dl、itunespy、tunter、colorama和python的开发者。 感谢iTunes和Gaana的出色API。 感谢搜索逻辑的Nishan Pantha。 感谢Biswaroop在windows中进行测试。python ytmdl.py
而不是上面的ytmdl
更改默认值
可以通过编辑.config文件夹中ytmdl文件夹中的配置文件来更改默认值
支持的更改选项是:
Name ^{ Directory to save the songs in after editing ^{ Quality of the song song目录还获取从歌曲中提取的值
示例格式是
/your/desired/path$Album->Artist->Title
以以下方式保存|--your
|--desired
|--path
|--Album
|--Artist
|--Title
|--Song.mp3
在歌曲结尾处添加任何标记将被视为歌曲的名称。
示例格式是
/your/desired/path$Album->Artist->[Title]
以以下方式保存|--your
|--desired
|--path
|--Album
|--Artist
|--Title.mp3
Name ^{ Artist Of the Song ^{ Album Of the Song ^{ Title Of the Song ^{ Genre Of the Song ^{ TrackNumber Of the Song ^{ ReleaseDate Of the Song 致谢
推荐PyPI第三方库