reddit-downloader

Image downloader based on subreddit.


Install
pip install reddit-downloader==0.0.2

Documentation

reddit_image_downloader

####Description:

The script will pull the top posts from the subreddit you give it.

It will look through the posts to find images and then download them to the /data/Images file.

You will need a bot login for Reddit. See: https://github.com/reddit-archive/reddit/wiki/OAuth2-Quick-Start-Example#first-steps

For praw config information see: https://praw.readthedocs.io/en/latest/getting_started/configuration/prawini.html.

Required praw.ini entries are:

  • [download_bot]
  • client_id=
  • client_secret=
  • user_agent='Python:reddit_image_downloader:0.1 (by /u/merchantjeff)'

####Usage

usage: main.py [-h] [-l LIMIT] [-a] [-s {new,hot,top,rising}] sub [sub ...]

Tool allowing the downloading of images and gifs from listed subreddit.

positional arguments:
  sub                   Input subreddit for downloading.

optional arguments:
  -h, --help            show this help message and exit
  -l LIMIT, --limit LIMIT
                        Number of submissions to be downloaded.
  -a, --album           Allow Imgur albums
  -s {new,hot,top,rising}, --sort {new,hot,top,rising}
                        Change default sort.

####Requirements as per requirements.txt

pip install requirements.txt

####Notes

Logging is on at debug as default, it creates a main.log file on run.