Skip to content

Instantly share code, notes, and snippets.

View thomascoe's full-sized avatar

Thomas Coe thomascoe

View GitHub Profile
@thomascoe
thomascoe / pricemonitor.pl
Last active October 29, 2015 00:11
Checks Reddit for new posts to /r/buildapcsales matching a specified tag, sends email when it finds something new. Depends on XML::RSS::Parser and the Linux 'mail' command (tested with mailx)
#!/usr/bin/perl
use strict;
use IO::File;
use Date::Parse;
use XML::RSS::Parser;
my $tag = "GPU";
my $time_file = "/home/username/pricemonitor_lasttime.txt";