It's written in perl... here's a copy of the script for anyone who runs Linux (or has windows and wants to install perl) ... here's the basic idea (tho i just modified it a list on-the-fly before posting but the one running live is similar)
$sm = "/usr/sbin/sendmail";
$from = 'lehout@stabs.org';
$subj = 'caddisguys script thinks LEH is out';
while(1) {
sleep 120;
$lehpage = `curl -s http://www.env.gov.bc.ca/fw/wildlife/hunting/resident/leh.html`;
if($lehpage =~ /LEH/) {
unless($lehpage =~ /LEH Draw has not yet been run/) {
@emaillist = `cat emaillist.txt`;
foreach(@emaillist) {
chomp();
open (MAIL, "| $sm -t") || die("Can't open sendmail\n");
print MAIL "From: $from\n";
print MAIL "To: $_\n";
print MAIL "$subj\n";
print MAIL "For some reason, caddisguy's script thinks LEH is out. Maybe it is actually out?! Good time to check!! Apologies if this is a false alarm.\n";
close(MAIL);
exit;
}
}
}
and yes, PM if you want a notification. I'll add up to 50 addresses... first come, first served.
Rhyme time... Tomorrow is the day? No F****'n way!
This is a joke.
Looks like my inbox filled up. Just deleted a bunch of messages. If anyone else was trying to reach me to get their email addresses added to the experimental notification script try now. In theory (99% certain as I do this sort of thing for a living and stuff usually goes as planned) you will get an email within 1-120 seconds of the results being posted.
I'm thinking you should have used the "status" url...
http://www.env.gov.bc.ca/fw/wildlife...eh.html#Status
Last edited by hare_assassin; 07-02-2015 at 08:27 AM.
http://www.env.gov.bc.ca/fw/wildlife...ident/leh.html actually grabs the entire page in html format so #Status isn't necessary. It will result in the page being "displayed" in a browser with the Status section expanded, but when grabbing the entire page in html format, it's not necessary as curl doesn't interrupt the html for display purposes like a browser would:
flycast@caddis:~$ curl -s http://www.env.gov.bc.ca/fw/wildlife...ident/leh.html | grep -E 'Draw.*yet'
2015/2016 LEH Draw has not yet been run.
flycast@caddis:~$ curl -s 'http://www.env.gov.bc.ca/fw/wildlife/hunting/resident/leh.html#Status' | grep -E 'Draw.*yet'
2015/2016 LEH Draw has not yet been run.
^^^ Same deal as far as the script is concerned
Last edited by caddisguy; 07-02-2015 at 08:42 AM.
Ah, I see. Cool.
Load your rifles,paint your faces and get decked out in your finest Camo folks, Cuz today is the day! We got the bus run'in right now, so the second we get our draws, we's gone!!! 47 of us put draws in for doe's, so even if we get one doe between us, we'll have our winters meat early this year! Good Luck to All!