I'm trying to do a google search using Ruby, and print the 1st 3 results.
Could anyone point me to a sample code? I'm unable to find it.
The gem googleajax
is there for that:
require 'googleajax'
GoogleAjax.referer = "your_domain_name_here.com"
GoogleAjax::Search.web("Hello world")[:results][0...3]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With