YouTube音乐下载程序

ytmdl的Python项目详细描述


YouTube音乐下载程序

YTMDL在起作用

PyPi VersionPyPI Python VersionsLicense

GIF

  1. Prerequisites
  2. Important
  3. Setup
  4. Usage
  5. Change Defaults
  6. Acknowledgements

先决条件

  • 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,使用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

致谢

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Android:在内部存储器中保存两个同名位图   java如何获取每个月的记录?   java错误:找不到com。安卓工具。构建:渐变:3.2.1   Java反射,如何使用构造函数获取newInstance是一个很重要的问题。类别ex:Class<Customer>customerClass   java具体类不使用泛型标识符编译   java InputStream在Apache FileUpload API中关闭   java自动隐藏任务栏和最大屏幕空间   java端点返回对象而不是直接JSON   java打印BST的直径   在Java中将节点追加到xml   java如何在Jersey中注册静态类?   java如何修改for循环,使其不比较第一个循环和最后一个循环,而是将所有其他循环与最后一个循环进行比较?   java扩展主机意外终止(vscode)   如何使用Java进程读取mysql控制台输出   java从现有列表创建元素列表   java将数据流式传输到BigQuery新表中?   java如何从绑定结果验证失败返回错误响应?