wrote it myself. see below. only problem I saw is it bounced back and forth between flashing and thinking it wasn't available yet at first -- assuming this is because they have some load balancing going on across servers and not all servers were updated at the exact same time.
Code:
#!/usr/bin/perl -w
use strict;
use Curses;
$| = 1;
use LWP::UserAgent;
my $url = "https://play.google.com/store/devices/details?id=nexus_4_16gb";
my $agent = LWP::UserAgent->new();
initscr();
while (1) {
my $now = `/bin/date`;
my $response = $agent->get($url);
if ($response->{_content} =~ /Notify me/) {
print "$now";
} else {
flash();
}
sleep(1);
}
comes up with an error:
C:\Users\a\Desktop>"check store.pl"
Can't locate Curses.pm in @INC (@INC contains: C:/Perl64/site/lib C:/Perl64/lib
.) at C:\Users\a\Desktop\check store.pl line 5.
BEGIN failed--compilation aborted at C:\Users\a\Desktop\check store.pl lin
e 5.
C:\Users\a\Desktop>"check store.pl"
Can't locate Curses.pm in @INC (@INC contains: C:/strawberry/perl/site/lib C:/st
rawberry/perl/vendor/lib C:/strawberry/perl/lib .) at C:\Users\a\Desktop\c
heck store.pl line 5.
BEGIN failed--compilation aborted at C:\Users\a\Desktop\check store.pl lin
e 5.