Sha256: 35cc56fc35a0412007ee7d4c4edfbbda46c3d8d2f03aeab93f6f793df88f871d
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
# Google Maps Reviews Scraper With Ruby The library provides real-time access to the reviews from Google Maps via [Outscraper API](https://app.outscraper.com/api-docs#tag/Google-Reviews). ## Installation Install the gem and add to the application's Gemfile by executing: ```bash bundle add outscraper ``` If bundler is not being used to manage dependencies, install the gem by executing: ```bash gem install outscraper ``` [Link to the Ruby package page](https://rubygems.org/gems/outscraper) ## Initialization ```ruby require 'Outscraper' client = Outscraper::Client.new('SECRET_API_KEY') ``` [Link to the profile page to create the API key](https://app.outscraper.com/profile) ## Usage ```ruby # Get reviews of the specific place by id results = client.google_maps_reviews('ChIJrc9T9fpYwokRdvjYRHT8nI4', reviews_limit: 20, language: 'en') # Get reviews for places found by search query results = client.google_maps_reviews('Memphis Seoul brooklyn usa', reviews_limit: 20, limit: 500, language: 'en') # Get only new reviews during last 24 hours yesterday_timestamp = 1657980986 results = client.google_maps_reviews( 'ChIJrc9T9fpYwokRdvjYRHT8nI4', sort: 'newest', cutoff: yesterday_timestamp, reviews_limit: 100, language: 'en') ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
outscraper-0.1.4 | examples/Google Maps Reviews.md |