- Download local hosted videos with audio.
- Requires only
requests
andFFmpeg
. - Ability to decide quality.
- Bypass bot detection.
redvid
requires Python 3.
Use pip
to install the package from PyPI:
pip install redvid
Or, install the latest version of the package from GitHub:
pip install git+https://github.com/elmoiv/redvid.git
Using redvid to download a video:
- via terminal (See console commands):
> redvid -u "https://v.redd.it/c8oic7ppc2751" -mxq
- via scripts:
from redvid import Downloader
reddit = Downloader(max_q=True)
reddit.url = 'https://v.redd.it/c8oic7ppc2751'
reddit.download()
or
__import__('redvid').Downloader(url='https://v.redd.it/c8oic7ppc2751', max_q=True).download()
https://m.wikihow.com/Install-FFmpeg-on-Windows
(You may need to restart your pc after applying these steps)
sudo apt install ffmpeg
-
install Homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
Then:
$ brew install ffmpeg
Here are a few sample tests:
- Video only
- Video with audio
- Get best quality according to given size (Automated)
- Choose PATH
- Auto-detect maximum quality
- Auto-detect minimum quality
- Skip file check and overwrite
- Silent download (No logging)
- Set maximum video size
- Set maximum video size (different technique)
- Set maximum video duration
- Set maximum video duration (different technique)
- Custom Filename
> 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
Please contribute! If you want to fix a bug, suggest improvements, or add new features to the project, just open an issue or send me a pull request.
*Android version of Redvid is not open-source.