I've never written anything like this... Is there a function like CURL that downloads the page as a string from a URL?
require 'net/http'
require 'uri'
output = Net::HTTP.get(URI.parse("http://www.google.com"))require 'curb' c = Curl::Easy.perform("http://www.google.com) puts c.body_str