redvid
vid 2.0.5
requests
和FFmpeg
。redvid
需要 Python 3。
使用pip
从 PyPI 安装软件包:
pip install redvid
或者,从 GitHub 安装最新版本的软件包:
pip install git+https://github.com/elmoiv/redvid.git
使用redvid下载视频:
> redvid -u " https://v.redd.it/c8oic7ppc2751 " -mxq
from redvid import Downloader
reddit = Downloader ( max_q = True )
reddit . url = 'https://v.redd.it/c8oic7ppc2751'
reddit . download ()
或者
__import__ ( 'redvid' ). Downloader ( url = 'https://v.redd.it/c8oic7ppc2751' , max_q = True ). download ()
https://m.wikihow.com/Install-FFmpeg-on-Windows
(应用这些步骤后,您可能需要重新启动电脑)
sudo apt install ffmpeg
安装自制程序:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
然后:
$ brew install ffmpeg
以下是一些示例测试:
> redvid --help
usage: redvid [-h] [-u URL] [-p PATH] [-o] [-mxq] [-mnq] [-mxd MAXDURATION]
[-mxs MAXSIZE] [-am] [-ad] [-px PROXIES] [-v] [-c]
Argument parser for redvid module
required arguments:
-u URL, --url URL Post URL for Reddit hosted video
optional arguments:
-p PATH, --path PATH Custom path for downloaded videos
-o, --overwrite Overwrite existing videos and ignore exception
-mxq, --maxquality Auto select maximum quality
-mnq, --minquality Auto select minimum quality
-fn FILENAME, --filename FILENAME
Set custom filename for downloaded video
-mxd MAXDURATION, --maxduration MAXDURATION
Ignore videos that exceed this duration (in seconds)
-mxs MAXSIZE, --maxsize MAXSIZE
Ignore videos that exceed this size (in bytes)
-am, --automax Automatically download video with maximum size (Helps
for old reddit videos with unknown qualities)
-ad, --autodir Automatically create path if correctly typed and does
not exist
-px PROXIES, --proxies PROXIES
Download videos through proxies for blocked regions
-v, --version Show redvid version
-nc, --noclean Don't clean temp folder after download is done
请贡献!如果您想修复错误、提出改进建议或向项目添加新功能,只需提出问题或向我发送拉取请求即可。
* Android 版本的 Redvid 不是开源的。