-
-
Save suchi/943974 to your computer and use it in GitHub Desktop.
iPad2を待ちながら
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 'open-uri' | |
WAIT = 180 | |
loop do | |
begin | |
open('http://onlineshop.mb.softbank.jp/ols/html/model/ipad/') | |
puts "iPad2 online shop page opened!" | |
rescue Exception => e | |
unless e.to_s =~ /^403/ | |
puts "iPad2 online shop status changed #{e}" | |
end | |
end | |
sleep WAIT | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment