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 jfreechart StackedBarChart自定义   加载菜单资源(xml与java)之间的安卓差异   java JFrame图像,在上面绘制   java在JSP文件中导入类   java使用Maven创建独立的应用程序   java将分号作为参数在Ant中传递   Artifactory中的JavaGAVC搜索不考虑分类器   如何为Kotlin扩展函数的接收者添加KDoc注释(Java中的第一个参数,`this`在Kotlin中)   JAVAutil。日志记录:当从Windows comand prompt运行时,处理程序的输出到哪里?   java css文件不适用于springboot项目   java错误:打包安卓。支持注释。不存在   java如何在远程Glassfish服务器上激活JMX,以便使用jconsole进行访问?   java如何在Firestore中存储富文本编辑器的数据?   java使用ajax动态地添加了新项   java如何在初始注册之前动态更新EurekaInstanceConfig的元数据?   java将HTML附加到XOM元素   java如何使用Telegram Bot API提高发送图像的质量   在Java中使用OpenCV比较图像相似性