Created
April 27, 2011 08:23
-
-
Save mackato/943913 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 'open-uri' | |
begin | |
open('http://onlineshop.mb.softbank.jp/ols/html/model/ipad/') | |
`say "iPad2 online shop page opened!"` | |
rescue Exception => e | |
unless e.to_s =~ /^403/ | |
`say "iPad2 online shop status changed #{e}"` | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment