requests
y FFmpeg
. redvid
requiere Python 3.
Utilice pip
para instalar el paquete desde PyPI:
pip install redvid
O instale la última versión del paquete desde GitHub:
pip install git+https://github.com/elmoiv/redvid.git
Usando redvid para descargar un video:
> 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 ()
o
__import__ ( 'redvid' ). Downloader ( url = 'https://v.redd.it/c8oic7ppc2751' , max_q = True ). download ()
https://m.wikihow.com/Install-FFmpeg-on-Windows
( Es posible que necesites reiniciar tu PC después de aplicar estos pasos )
sudo apt install ffmpeg
instalar cerveza casera:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Entonces:
$ brew install ffmpeg
Aquí hay algunas pruebas de muestra:
> 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
¡Por favor contribuye! Si desea corregir un error, sugerir mejoras o agregar nuevas funciones al proyecto, simplemente abra una incidencia o envíeme una solicitud de extracción.
* La versión de Android de Redvid no es de código abierto.