A package to download Reddit hosted videos with sound without manual installation of ffmpeg and other media as well with the post's url
Project description
A very easy to use library to download videos from reddit with sound without installing external installation of ffmpeg. The library can also be used to download pictures and even picture galleries all just with a reddit post link note that this package does only download media from posts with images/video directly uploaded to reddit and not from sources like imgur or youtube / vimeo.
Usage: To Install the package:
pip install RedDownloader
To Import package just do:
from RedDownloader import RedDownloader
RedDownloader is auth less you don't need to have a praw bot to use this package.
After importing, Downloading is just a single line of code
RedDownloader.Download(url)
This will automatically download media from the passed url it would automatically detect if it's a picture/video/gallery with default options. to pass in an output filename just pass in the output parameter as:
RedDownloader.Download(url , output="MyAwesomeRedditMedia")
In case if a post is of type gallery it will make a folder in the destination
path with the output parameter passed. That folder would contain all your pictures. In Case if a folder with that name already exists files would be downloaded in that folder.
To set a custom path for downloaded file use destination
as an argument like
RedDownloader.Download(url , output="MyAwesomeRedditMedia" , destination="D:/Pictures/")
default file name is "downloaded". you don't have to pass in extensions to the output parameter.
default download location for file is current working directory.
Another argument is the quality
argument which defines the resolution to download if the filetype is a video the avaliable options to choose from are 360 , 720 , 1080 please note that higher resolution would result in bigger file size. An example:
RedDownloader.Download(url , output="MyAwesomeRedditMedia" , quality = 1080)
You at times might need to know the media type of the file being downloaded for that you can use the GetMediaType()
method
file = RedDownloader.Download(url)
print(file.GetMediaType())
for images it returns a i
for videos it returns a v
and for a gallery post it returns a g
The package has been tested for videos with no sound as well.
Galleries were first supported in RedDownloader 2.2.0 any older version used to download a gallery post would return a Post Not Recoganized
error
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for RedDownloader-2.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c5c62f64635c0f4c151df67c66b73096f519c88f0e335ea6ff91746b86e133b |
|
MD5 | 1cab75d1692ac0198abd8f0f4c623f93 |
|
BLAKE2b-256 | bf166ed1a5a0b98af0f83ce2eba92e3d551a7fe2fb24247815f53f476ed5a92a |