Skip to main content

Smart downloader for Reddit hosted videos

Project description


Redvid icon
Redvid

Smart Downloader for Reddit Hosted Videos


Now available for Android*

Features

  • Download local hosted videos with audio.
  • Requires only requests and FFmpeg.
  • Ability to decide quality.
  • Bypass bot detection.

Installation

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

Usage

Using redvid to download a video:

> 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()

Installing FFmpeg

Windows:

https://m.wikihow.com/Install-FFmpeg-on-Windows

(You may need to restart your pc after applying these steps)

Linux:

sudo apt install ffmpeg

Mac OS:

  • install Homebrew:

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  • Then:

    $ brew install ffmpeg

Tests

Here are a few sample tests:

Console Commands

> 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

Stargazers over time

Stargazers over time

Contributing

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

redvid-2.0.5.tar.gz (25.6 kB view details)

Uploaded Source

Built Distribution

redvid-2.0.5-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file redvid-2.0.5.tar.gz.

File metadata

  • Download URL: redvid-2.0.5.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.31.0 setuptools/68.0.0 requests-toolbelt/0.9.1 tqdm/4.65.0 CPython/3.7.7

File hashes

Hashes for redvid-2.0.5.tar.gz
Algorithm Hash digest
SHA256 f69dba0bbd402c0927f8d0dae6f413ef4e01ba277d5ebd524fa0030fdd8c57cd
MD5 9493bd671619c3582a0a71c3a8dfd8ce
BLAKE2b-256 a37ff97ae7ac0a15310462dd07f6d6656bfa8ba83d603c1b8de9bee4ce48ac5d

See more details on using hashes here.

File details

Details for the file redvid-2.0.5-py3-none-any.whl.

File metadata

  • Download URL: redvid-2.0.5-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.31.0 setuptools/68.0.0 requests-toolbelt/0.9.1 tqdm/4.65.0 CPython/3.7.7

File hashes

Hashes for redvid-2.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 56abb4eb76f81efb45444845d140beb4b547ffe1d29f48cfe41476c8d1ebe38f
MD5 ba324b19f28c02f2b70315e194f4d02b
BLAKE2b-256 76bb49640d9b29a3740c9181d46225b451cedfd3ab6ef0bdfb3e0cacd6c42bd4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page