Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 825 Bytes

Google SERP.md

File metadata and controls

32 lines (23 loc) · 825 Bytes

Google Search Results Scraper With Ruby

The library returns search results from Google based on a given search query via Outscraper API.

Installation

Install the gem and add to the application's Gemfile by executing:

bundle add outscraper

If bundler is not being used to manage dependencies, install the gem by executing:

gem install outscraper

Link to the Ruby package page

Initialization

require 'Outscraper'

client = Outscraper::Client.new('SECRET_API_KEY')

Link to the profile page to create the API key

Usage

# Search for SERP results:
results = client.google_search('buy iphone 13 TX', language: 'en', region: 'us')