class BingSearch

Bing Search Result for Ruby powered by SerpApi

Search API Usage

“`ruby parameter = {

q: "query",
location: "city,state,country",
api_key: "Your SERP API Key"

}

search = BingSearch.new(parameter) search.params = “Portland”

html_results = search.get_html hash_results = search.get_hash json_results = search.get_json

“`

doc: serpapi.com/bing-search-api

Public Class Methods

new(params = {}) click to toggle source
Calls superclass method SerpApiSearch::new
# File lib/search/bing_search.rb, line 27
def initialize(params = {})
  super(params, BING_ENGINE)
  check_params([:q, :engine])
end