一个python程序,它使用beautifulsoup和youtube dl从youtube下载一首歌

getsong的Python项目详细描述


一个python程序,它使用beautifulsoup和youtube dl下载 来自YouTube的歌曲

结果将存储在当前工作目录中。

用法

usage: getsong [-h] [-y] [-m] [-p] [-u] [-q] [-i ID] [--artist ARTIST]
               [--title TITLE] [--album ALBUM]
               term

positional arguments:
  term              Youtube search term

optional arguments:
  -h, --help        show this help message and exit
  -y, --yes         Skip prompt
  -m, --musicvideo  Get first result for <term>, not '<term> lyrics'
  -p, --print-path  Prints path to file to stdout, so you can pipe it to a
                    command or play the file or something
  -u, --print-url   Prints URL to stdout without downloading the audio track
  -q, --quiet       Hides youtube-dl output. Still shows y/n prompt if not
                    hidden by -y
  -i ID, --id ID    Skip search, lookup ID. Use "" for the search term instead
  --artist ARTIST   Uses Mutagen to write the artist information to the output
                    file
  --title TITLE     Uses Mutagen to write the title information to the output
                    file
  --album ALBUM     Uses Mutagen to write the album information to the output
                    file

Track numbering currently unsupported by mutagen

安装

通过pip

pip3 install getsong

或者:

  • 克隆存储库,cd getsong
  • 运行python3 setup.py installpip3 install -e
  • ^建议{tt5}$(或avconv)将容器固定在 下载的音频。

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

推荐PyPI第三方库


热门话题
java的单元测试测试用例库。util。列出实现   java通过超类进行序列化/反序列化   java Android获取设备语言ISO字符串   java如何打开广告的行动。移动   Eclipse IDE for(嵌入式C/C++)开发者202012:经典的深色主题深黑色背景和菜单中的文本   java使用不同的内容动态创建TableView(JavaFX)   java JAXB将多个同名节点解组   java ClassDefNotFoundException,即使类由类加载器加载(服务器上安装了多个应用程序)   java有没有办法关闭在后端生成的MqttClient线程?   html如何在网站上的java小程序中包含图像?   java无法访问已分配给超类引用的子类实例变量   java在TableViewer中双击打开对话框   列出如何创建ListNode。JAVA   java如何从文本中输出的数组中放入随机图像