Skip to content

Instantly share code, notes, and snippets.

@mackato
Created April 27, 2011 08:23
Show Gist options
  • Save mackato/943913 to your computer and use it in GitHub Desktop.
Save mackato/943913 to your computer and use it in GitHub Desktop.
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