Image downloader based on subreddit.
Project description
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 /images.
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.0.2 (by /u/merchantjeff)'
Usage
usage: main.py [-h] [-l LIMIT] [-a] [-s {new,hot,top,rising}] [-v]
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.
-v, --verbose More verbose logging.
Requirements
as per requirements.txt
pip install -r requirements.txt
Notes
Logging is on at debug as default, it creates a main.log file on run.
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
File details
Details for the file reddit_downloader-0.0.2.tar.gz
.
File metadata
- Download URL: reddit_downloader-0.0.2.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df6dc50cef4a190df22bb614adda888935a2e0c0767ad9cb727127c4b297fc22 |
|
MD5 | 22b0263e7de9bb0335ccf73edccc007f |
|
BLAKE2b-256 | f0da941de0e2124a746b55d0c159ccd50c17b8ffb95509d1680eeb8839adaf7a |
File details
Details for the file reddit_downloader-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: reddit_downloader-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 745c972c72af56ce3bfd12caeafacfe0fe4c38c6e8229ec66f7e20d39fcb5b05 |
|
MD5 | e4a5b8e159b1fa5abd145ad27aadc2d3 |
|
BLAKE2b-256 | 924ef55dc463a5671ff177bdbe2918f8d6aff08a782b8ac865af337976a9d32e |