This is a basic Reddit image scraper on Python that can download images and gifs to your computer.
It uses the Reddit developer API and PRAW (Python Reddit API Wrapper) to achieve this.
The user will need to create to have their own Reddit API and copy the personal use script and secret key values.
If the user hasn't created their own yet, they can use this link.
The user can create a text file containing your Reddit credentials that is line separates their personal use script, secret key, app name, user name and password Or the user may manually pass these into the console when running the image_scraper.py file with a terminal.
Then the program will prompt the user with three queries:
- The number of images to download.
- The subreddit to scrape from.
- The category to sort the posts by.
After that the program will deliver these images to the folder labeled "images" within the subdirectory named after the subreddit.