redvid
vid 2.0.5
requests
e FFmpeg
. redvid
requer Python 3.
Use pip
para instalar o pacote do PyPI:
pip install redvid
Ou instale a versão mais recente do pacote do GitHub:
pip install git+https://github.com/elmoiv/redvid.git
Usando redvid para baixar um vídeo:
> 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 ()
ou
__import__ ( 'redvid' ). Downloader ( url = 'https://v.redd.it/c8oic7ppc2751' , max_q = True ). download ()
https://m.wikihow.com/Install-FFmpeg-on-Windows
( Pode ser necessário reiniciar o PC após aplicar essas etapas )
sudo apt install ffmpeg
instale o Homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Então:
$ brew install ffmpeg
Aqui estão alguns exemplos de testes:
> 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 contribua! Se você quiser corrigir um bug, sugerir melhorias ou adicionar novos recursos ao projeto, basta abrir um issue ou me enviar um pull request.
* A versão Android do Redvid não é de código aberto.