WWW::Mechanize examples Google require 'rubygems' require 'mechanize' agent = WWW::Mechanize.new agent.user_agent_alias = 'Mac Safari' page = agent.get("http://www.google.com/") search_form = page.forms.with.name("f").first search_form.q = "Hello" search_results = agent.submit(search_form) puts search_results.body Rubyforge require 'mechanize' agent = WWW::Mechanize.new page = agent.get('http://ru
{{#tags}}- {{label}}
{{/tags}}