Skip to content

Fetch images from a subreddit based on post title and flair

License

Notifications You must be signed in to change notification settings

jcsumlin/Reddit-Image-Scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reddit Image Scraper

Install instructions.

Edit the auth.ini.example file to contain your credentials and save it as auth.ini

IMPORTANT VARIABLES:

SUBREDDIT = "python"
word1 = ""
word2 = ""
flair = ""

Read into the 'image_fetch(already_fetched)' function to find the 'if' statement inside the only 'for' loop.

if submission.link_flair_text == flair and (word1 in submission.title.lower() and word2 in submission.title.lower()) and submission.id not in already_fetched:

You can customize this logic check to your liking. The words are meant to narrow your search results but they are optional.

About

Fetch images from a subreddit based on post title and flair

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages