Skip to content

Instantly share code, notes, and snippets.

@DyegoCosta
Created January 6, 2016 12:10
Show Gist options
  • Save DyegoCosta/c1765597e6b355d85420 to your computer and use it in GitHub Desktop.
Save DyegoCosta/c1765597e6b355d85420 to your computer and use it in GitHub Desktop.
require 'net/http'
address = 'http://www.comic-con.org/cci/2016/attendee-preregistration'
lookup = 'Comic-Con 2016 Attendee Preregistration is now CLOSED'
uri = URI(address)
wait = 5 * 60
loop do
unless Net::HTTP.get(uri).include?(lookup)
system('say "comic-con pre-registration is open"')
wait = 5
end
sleep(wait)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment