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 不是開源的。