Searches /r/BreedingDIttos for new giveaways and sends an email containing a URL to it so you don't have to keep refreshing the page all the time. Replace, "your username", etc. with the appropriate information before running.

SSMTPLib can be found here. Credit to for the email-sending code.

NOTE: Program as it is must be run manually whenever you want to check for new posts. Not exactly a step up from just refreshing the page. Refer here for automation. cd /path/to/script/foo/; ./ can be replaced with simply python /path/to/script/foo/ Additionally, as the tutorial states, the script will execute once every minute. If you feel this is too frequent (it likely is, considering how rarely giveaways on the subreddit occur), you can replace * * * * * python /path/to/script/foo/ with 00 * * * * python /path/to/script/foo/ to run it once every hour, or 00,30 * * * * python /path/to/script/foo/ to run it twice an hour. See here for more details and examples.

Built With

Share this project: