Script needed to diff and then play sound when refresh reveals tickets are on sale.
April 8, 2008 9:07 PM   Subscribe

W.A.S.T.E. of a question, but I need a script that will perform a diff and play an alert sound when a reload reveals that the HTML page has changed relative to the previous reload.

I have firefox set to refresh a page every 30 seconds, but I'd rather not stay up all night waiting for the page to change.

So, is there any kind of script that someone would like to write for me, or one that is preexisting that will play an alert sound once it detects any change in the page?

Bonus points if it works for multiple tabs.

Thanks!
posted by |n$eCur3 to Computers & Internet (8 answers total) 3 users marked this as a favorite
 
Best answer: Check4Change is a Firefox extension that claims to do what you want. SiteDelta, PUC and Notify are some old alternatives.
posted by Memo at 9:18 PM on April 8, 2008 [1 favorite]


Response by poster: That was quick. Thanks Memo, I'll give it a shot.
posted by |n$eCur3 at 9:22 PM on April 8, 2008


A while back, I wrote a simple bash script that sends you an email when a specific page changes. So, if you're a linux user, just save this, make it executable, then add it to your crontab. (I think it should work on Macs too)
#!/bin/bashcd /home/user/yourdirectoryofchoicemv data.html olddata.hmlwget http://www.example.com/ -O data.htmldiff data.html olddata.html >diff.txtRESULTS_SIZE1=`stat -c %s diff.txt`                                                 if [ "$RESULTS_SIZE1" -ne 0 ]  #yes, we have new stuff   cat data.html | mail youraddress@email.com -s "Page Changed"fi
posted by chrisamiller at 10:44 PM on April 8, 2008


Ahhh, it appears we are in the same boat. Just stay away from any Hollywood Bowl tickets - they're mine!
I jest - there's plenty for all!
posted by Detuned Radio at 11:54 PM on April 8, 2008


wget cannot render javascript.
posted by popechunk at 5:58 AM on April 9, 2008


Memo, you should get a great big gold star because check4change got me my tickets. AskMeFi really CAN change your life.
posted by incessant at 9:56 AM on April 9, 2008


Response by poster: Guess what? I got tickets too, all because of check change! Thanks again Memo.
posted by |n$eCur3 at 11:32 AM on April 9, 2008


Yay, Check4Change got me general sale tickets! Thanks Memo.
posted by min at 7:19 AM on April 12, 2008


« Older Encircled Letter "F"   |   What can I do with my hundreds of grocery bags? Newer »
This thread is closed to new comments.