Skip to content

Instantly share code, notes, and snippets.

@suchi
Forked from mackato/ipad2_check.rb
Created April 27, 2011 09:27
Show Gist options
  • Save suchi/943974 to your computer and use it in GitHub Desktop.
Save suchi/943974 to your computer and use it in GitHub Desktop.
iPad2を待ちながら
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