2009/4/24 Cisco Ri <cisco.riordan / gmail.com>:
> Anybody have a code snippet that extracts the title from the <title> tag
> from a given URL?

require 'rubygems'
require 'mechanize'
title = WWW::Mechanize.new.get('http://google.com').title
=> "Google"


Regards,
Park Heesob