Skip to content

Python command line script that scrapes images off of subreddits

License

Notifications You must be signed in to change notification settings

bryan-aguilar/img-extractor-for-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

img-extractor-for-python

Overview

This is a command line python script that will scrape images off of a specified subreddit. Utilizes the PRAW library to communicate with the reddit API.

Requirements

Python >= version 3.8
Ensure proper dependencies are installed using requirements file
pip install -r requirements.txt
Script needs to be contained in its own subdirectory to avoid permission issues with saving the images

Getting your own reddit auth token

Click here to create your own reddit app. Use this guide to answer basic questions about authentication.

Creating a credentials file

A cred.txt file will need to be created and should have this exact format. Your creds.txt file should also be located in the src directory. This should all be on one line.

client_id=INSERT YOUR CLIENT ID HERE,client_secret=INSERT YOUR CLIENT SECRET HERE,user_agent=INSERT YOUR USER AGENT HERE

About

Python command line script that scrapes images off of subreddits

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages