A small example package to install reddit videos with sound without ffmpeg
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 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:
THIS SECTION OF DOCUMENTATION IS FOR RedDownloader 2.0.0 (Newest)
To Import package just do:
from RedDownloader import RedDownloader
RedDownloader 2.0.0 unlike RedDownloader 1.0.0 is auth less you don't need to have a praw bot to use this package (RedDownloader 1.0.0 required a registered praw bot)
After importing, Downloading is just a single line of code
d = RedDownloader.Download(url)
This will automatically download media from the passed url it would automatically detect if it's a picture/video with default options. to pass in an output filename just pass in the output parameter as:
RedDownloader.Download(url , output="MyAwesomeRedditMedia")
default file name is "downloaded" you don't have to pass in extensions to the output parameter
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)
The package has been tested for videos with no sound
THIS SECTION OF DOCUMENTATION IS FOR RedDownloader 1.0.0 (Please switch to 2.0.0 if not already)
To Import package just do:
from RedDownloader import RedDownloader
d = RedDownloader.Downloader("clientID", "clientSecret", "userAgent")
this will initialize your praw bot make sure you have a registered praw application registered
d.download(url)
This will automatically download media from the passed url it would automatically detect if it's a picture/video with default options. to pass in an output filename just pass in the output parameter as:
d.download(url , output="MyAwesomeRedditMedia")
you don't have to pass in extensions to the output parameter
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:
d.download(url , , output="MyAwesomeRedditMedia" , quality = 1080)
The package has been tested for videos with no sound and it works really well!
Arnav Bajaj
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.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c9dab9371ad1a58259e3db7f685b0e6bf7c8881dfdf41027c1ab9ca3e834e0e |
|
MD5 | 0c66b096e1dd7a979db296d297e2c356 |
|
BLAKE2b-256 | f2a53750c5464c1355db54b91ff3b4dc59c59ee13f8d316ad12e7108160f9e46 |