Created
October 1, 2013 11:16
-
-
Save mxlje/6776985 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
# Checks status code of multiple URLs and prints them | |
require "mechanize" | |
urls = [ | |
'http://maxlielje.co' | |
] | |
@agent = Mechanize.new | |
urls.each { |url| puts "[#{@agent.get(url).code }] :: #{url}" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment