Hpricot Google search snippet

Tags
Tagshpricot, ruby, programming, snippets
Posted
Fri 5 Jan, 2007
Comments
0

With hpricot you can do anything!

puts ((Hpricot(open(URI.escape("http://www.google.com/search?q=#{term}"))))/"a.l").collect { |link| "#{link.innerHTML}: #{link.attributes['href']}" }.join("\n")

Security Code