Instantly share code, notes, and snippets.

View gist:637f8bbba681f6b30c09
require 'rubygems'
require 'mechanize'
require 'open-uri'
a = Mechanize.new { |agent|
agent.user_agent_alias = 'Mac Safari'
}
page = a.get("http://tumblr.com/login")