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如何在JSF中检索DIV宽度   JavaMaven:替换导入为javax和jakarta创建单独的工件   java ModelViewController和应用程序设置   多线程Java线程,具有可视和音频   java Servlet通过Post上传文件   java Google日历API依赖项不起作用   使用多个窗口使用Eclipse进行java调试   java JNI 8 C++:线程附加和分离和异步回调   java将MS Office communicator状态指示器添加到JSP中   java找不到工件javax。指定路径下的jnlp:jnlpapi:jar:5.0   java以编程方式从图像生成像素艺术   java Eclipse IDE使用代理项对处理表情   java层和组件之间的区别是什么?   java使用正弦波进行流畅的转换   为什么我不能在NetBeans调试器中单步进入/跳过Java源代码?