Thursday, August 25, 2011

Checking on the status of the TouchPad, polling for changes on a web page

With all the hype surrounding the price drop of the HP TouchPad, I have found myself spending a lot of time trying to find a store with one in stock. At one point I saw that HP's own store listed the touchpad as "coming soon" after most stores had run out of stock. Instead of refreshing the page on my own I wrote a script to do it for me.

This script loads the product page every 30 seconds and checks the button area to see if it still says coming soon or if it has the out of stock image. When it no longer finds either of those things, it has my computer say "alert" over and over again (in an australian accent, because who doesn't change their speech voice to australian) and automatically loads the product page in Chrome Canary for me.

I'm sure there are many others like it, but this one is mine. Check it out. Use it, fork it, modify it for your own needs. I license this under WTFPL.


  1. The Best Sports toto Bet on - Sporting100
    There are also plenty of other ways to bet 토토사이트 online. Some of them include a sportsbook, 바카라 사이트 online casino, and betting site. If you are looking for a way to

  2. I commend you for your quick thinking.

  3. A splendid job! I commend you for your thorough work.

  4. fafaslot88 adalah situs slot online provider negeri jiran yang mesinnya sangat bagus dan bikin mudah menang. Pastinya akan lancar terus ketika dimainkan oleh para bettor Indonesia