Skip to content

Instantly share code, notes, and snippets.

@ashgti
Created January 26, 2009 04:14
Show Gist options
  • Save ashgti/52696 to your computer and use it in GitHub Desktop.
Save ashgti/52696 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'mechanize'
a = WWW::Mechanize.new { |agent|
agent.user_agent_alias = 'Mac Safari'
}
a.get('http://en.wikipedia.org/wiki/Extrajudicial_killings_and_forced_disappearances_in_the_Philippines') do |page|
puts page.body
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment