草庐IT

googleajax

全部标签

ruby - 在 Ruby 中使用 Google 搜索 REST API

我正在尝试使用Ruby进行谷歌搜索,并打印前3个结果。谁能给我指出示例代码?我找不到它。 最佳答案 gemgoogleajax是为了那个吗:require'googleajax'GoogleAjax.referer="your_domain_name_here.com"GoogleAjax::Search.web("Helloworld")[:results][0...3] 关于ruby-在Ruby中使用Google搜索RESTAPI,我们在StackOverflow上找到一个类似的问题