Giter Club home page Giter Club logo

rtid's Introduction

RTID : Reddit Top Images Downloader

RTID, an acronym for "Reddit Top Images Downloader", is a python script for downloading top images from Reddit's subreddits by using PRAW ("Python Reddit API Wrapper").

Synopsis

python3 src/main.py [options] 

Installation

Install packages by running pip3 install -r .\requirements.txt

Components

  • PRAW: PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API. PRAW aims to be easy to use and internally follows all of Reddit's API rules.

Quickstart

You need to have credentials to be able to use Reddit api. For instructions on setting Reddit to authenticate on non-reddit websites and applications, check Reddit OAuth2.

Set the following variables as environment variable in order to use RTID:

REDDIT_CLIENT_ID
REDDIT_CLIENT_SECRET
REDDIT_USERNAME
REDDIT_PASSWORD
REDDIT_USER_AGENT

Description

[src/main.py] Main script for executing the program. Example run: Without parameters:

python3 main.py

With parameters:

python3 main.py --subreddit_name witcher --post_limit 60 --min_upvote 1500

Script will create folder named RTID_Downloads and create folder with given subreddit name. Then download images to here. When the script is completed, the images will be saved in ./RTID_Downloads/<SUBREDDIT_NAME>/<CURRENT_DATE>

Options

  • --help Print help message.

  • --subreddit_name Which subreddit to get images. Default is art subreddit.

  • --post_limit Number of post submissions to look up. Default is 10.

  • --min_upvote Minimum number of upvote to filter. Default is 1000 upvotes.

rtid's People

Contributors

alansuleyman avatar

Watchers

 avatar

rtid's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.