Created
January 6, 2016 12:10
-
-
Save DyegoCosta/c1765597e6b355d85420 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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