youtube dl的轻量级包装

yt-helper的Python项目详细描述


安装

安装系统AV工具

% sudo apt-get install -y sox rtmpdump
% sudo apt-get install -y libav-tools
% [[ $? -ne 0 ]] && sudo apt-get install -y ffmpeg

or

% brew install libav sox rtmpdump

使用pip

安装
% pip3 install yt-helper

用法

提供了yt-download脚本

% venv/bin/yt-download --help
Usage: yt-download [OPTIONS] [ARGS]...

  Wrapper to 'av_from_url'

  - args: urls or filenames containing urls

Options:
  -o, --template TEXT       string representing generated filenames
  -h, --max-height INTEGER  maximum height of video (i.e. 1080, 720, 480,
                            240.. default 720)
  -p, --playlist            Allow downloading entire playlist
  -t, --thumbnail           Download thumbnail image of video
  -d, --description         Download description of video to a file
  -s, --subtitles           Embed subtitles in the downloaded video
  -a, --audio-only          Don't keep the video file if one was downloaded
  -m, --mp3                 Convert downloaded audio to MP3 file
  --help                    Show this message and exit.

可选安装

集合/模型(查询、url、文件、注释)

为了利用QUERIESURLSFILESCOMMENTS集合,还必须安装redis-helper 打包并运行redis服务器。

如果集合/模型可用,一些函数将保存 相关信息。

See: https://github.com/kenjyco/redis-helper#intro

安装redis并启动服务器

% sudo apt-get install -y redis-server

or

% brew install redis@3.2
% brew services start redis@3.2

使用pip

安装
% pip3 install redis-helper

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

推荐PyPI第三方库


热门话题
java错误:无法解析方法   如何用相同的父标记和子标记在Java中解析XML?   日期使用Java中的时区偏移将本地时间转换为UTC   java如何在多进程、多线程环境中读取文件   WebView中的java弹出式对话框不在当前显示范围内,但在chrome浏览器中运行良好   只有2个参数的java递归二进制搜索方法   无法在java中调用函数   java JavaMail在Tomcat服务器上运行时停止工作   反射通过java程序生成、编译和运行java类   java Android:如何使ListView即使在应用程序关闭后仍保持禁用状态   在JAVA中识别匿名类实例   java渲染一个由三角形组成的立方体,在旋转时会产生奇怪的角度   函数式编程如何基于比较连续的列表元素将Java流减少为布尔值   java如何替换列表中的多个项目?   java Android如何获取随机sqlite数据?   java我已经将useSSL设置为false,但仍然收到警告   java使用动态变量生成jlabel   apachespark:java。lang.NoClassDefFoundError v2TableWithV1回退