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 SimpleFramework和工厂方法   Java适当地处理异常   java单例类不起作用   java小程序和Swing在eclipse中不显示组件   多个键上的java Redisson FastRemove不起作用   java验证请求正文不等于模式   在Java中从URL读取数据   eche RecyclerView项的java Set自定义字体   string Java如何从Date获取HH:mm:ss   当Java应用程序落后于负载均衡器时,在某些URL上强制使用SSL   使用esapi时发生java错误   java使用流根据第二个列表中的值更新一个列表中的对象   组织。openqa。硒。Java中的NoTouchElementException WebDriver?   从JSON字符串Java创建CSV文件