No commit activity in last 3 years
No release in over 3 years
Ruby client for Google Custom Search
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Frank Researcher

Ruby Client for Google Custom Search

Installation

gem install frank_researcher

Configuration

  1. Get Google Custom Search api key
  2. Get Custom search engine ID in yout Control Panel
FrankResearcher.configure do |config|
  config.google_api_key = ENV['frank_google_api']
  config.google_cx = ENV['frank_google_cx']
end

Usage

require 'frank_researcher'

response = FrankResearcher.search('Ruby on rails')

response[:items].each do |item|
  puts item[:title]
  puts item[:link]
end

The search is executed on the websites you have specified in the Custom Search settings