Skip to content

Small Python script which pulls the newest posts from a number of specified subreddits and notifies users based on selected keywords

Notifications You must be signed in to change notification settings

IHSten/reddit-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reddit-notifier

Intro

reddit-notifier (RN) is a simple script that uses the reddit API, an sqlite database, and a gmail account to notify users when posts containing specified keywords have been posted to specified subreddits. It was created with the idea of notifying users for sales on subs like buildapcsales.

Setup

Setup is as easy as filling out the configs/subreddits.yml and configs/email.yml, and running the script. The script will automatically create an sqlite database posts.db. Given that the script only gathers the newest 25 posts and will not send an email for duplicate posts, it's designed to be run periodically on a short interval (sub-15 minutes). This could be done with a scheduler, or as recommended, a cronjob. An example crontab line is below

*/5 * * * * /usr/bin/python3 /home/ian/dev/reddit-notifier/main.py >/dev null 2>&1

About

Small Python script which pulls the newest posts from a number of specified subreddits and notifies users based on selected keywords

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages