Giter Club home page Giter Club logo

redditmediascanner's Introduction

RedditMediaScanner

This is a script that accesses a subreddit and downloads media content based on keywords from the submission title.

GitHub release Packagist

Dependencies

These dependencies, if you don't have them, can be installed with pip.

  • praw
  • wget
  • configparser

Usage

  1. Setup a praw.ini file with your reddit username, password, user_agent, client_id, and client_secret.

You can register the app with your account for authentication here: https://www.reddit.com/prefs/apps/

  1. Keep the praw.ini file in the same directory as the python script.
  2. Modify the config.ini file with your subreddit, search terms, optional parameters, etc...

Refer to the config.ini section of the ReadMe for additional information.

  1. Run the main.py script.

config.ini file

subreddit_name -> name of the subreddit you wish to scan
search_terms -> list of keywords seperated by commas
output_directory -> an output directory address for downloaded media
file_extensions -> the types of files to download
url_types -> whitelisted websites/links to download from
search_limit -> the scan search limit (default=1024)
allow_nsfw -> allow/disallow scanning of nsfw content (default=False)
allow_stream -> allow/disallow continuous subreddit scanning for new media (default=False)
split_folders -> split files in subfolders based on extension (default=True)

If you mess something up, you can copy/paste the contents of the example_config.ini file into the config.ini file to reset it.

praw.ini file

You can use the template provided in this repository and fill in the required information as detailed in the usage section of the readme.

Bugs, Issues, or Feature Requests?

Use the github issue template provided in the repository.

redditmediascanner's People

Contributors

duckboss avatar steeven9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

actorexpose

redditmediascanner's Issues

Extensions subfolders shouldn't start with a dot

Is your feature request related to a problem? Please describe.
Yes, the extensions subfolders are hidden because they start with a dot. They shouldn't.

Describe the solution you'd like
Simply remove the dot from the directory name, jpg instead of .jpg.

ModuleNotFoundError: No module named 'search_setup'

Describe the bug
A clear and concise description of what the bug is.
Cannot run the example code, missing module "search_setup"

To Reproduce
Steps to reproduce the behavior:

  1. Cloned most recent version of the source code.
  2. Imported into PyCharm
  3. Ran code, got the error ModuleNotFoundError: No module named 'search_setup'

Expected behavior
Be able to find all modules in latest version of all referenced libraries, such as praw.

Desktop (please complete the following information):

  • Python 3.6
  • OS: macOS High Sierra 10.13.4

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.