Skip to content

Instantly share code, notes, and snippets.

@plindberg
Created May 25, 2010 04:58
Show Gist options
  • Save plindberg/412779 to your computer and use it in GitHub Desktop.
Save plindberg/412779 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'open-uri'
require 'nokogiri'
URL = 'http://simplesignup.se/private_event/2905/2dbaa69f97'
while true
body = Nokogiri::HTML(open(URL).read)
if body.css('select').size > 0
system 'growlnotify -s -w -t "SSWC Tickets Available!" -m "Come get some!"'
break
else
sleep 10
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment