Sha256: 8678e9285c6cf4eee42091b77ee0242c33402afcded88b8ba96d2f09f2f3a5c8
Contents?: true
Size: 1.23 KB
Versions: 3
Compression:
Stored size: 1.23 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 result = client.google_maps_reviews_v3('ChIJrc9T9fpYwokRdvjYRHT8nI4', reviews_limit: 20, language: 'en') # Get reviews for places found by search query result = client.google_maps_reviews_v3('Memphis Seoul brooklyn usa', reviews_limit: 20, limit: 500, language: 'en') # Get only new reviews during last 24 hours yesterday_timestamp = 1657980986 result = client.google_maps_reviews_v3( 'ChIJrc9T9fpYwokRdvjYRHT8nI4', sort: 'newest', cutoff: yesterday_timestamp, reviews_limit: 100, language: 'en') ```
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
outscraper-0.1.3 | examples/Google Maps Reviews.md |
outscraper-0.1.2 | examples/Google Maps Reviews.md |
outscraper-0.1.1 | examples/Google Maps Reviews.md |