<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vlad</title>
    <description>The latest articles on DEV Community by Vlad (@mvlad).</description>
    <link>https://dev.to/mvlad</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F548952%2F0b698e75-c1eb-4c27-9274-e7b3c79c06e8.jpg</url>
      <title>DEV Community: Vlad</title>
      <link>https://dev.to/mvlad</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mvlad"/>
    <language>en</language>
    <item>
      <title>How to scrape Google Maps local businesses (+emails)</title>
      <dc:creator>Vlad</dc:creator>
      <pubDate>Tue, 23 Mar 2021 09:18:59 +0000</pubDate>
      <link>https://dev.to/mvlad/how-to-scrape-google-maps-local-businesses-emails-3c18</link>
      <guid>https://dev.to/mvlad/how-to-scrape-google-maps-local-businesses-emails-3c18</guid>
      <description>&lt;h2&gt;
  
  
  Scrape local businesses from Google
&lt;/h2&gt;

&lt;p&gt;Google Maps is a perfect source of local businesses for marketers as it has millions of companies with contact information about them. You can get phone numbers, emails, social profiles, etc.&lt;/p&gt;

&lt;h2&gt;
  
  
  Automate the scraping process
&lt;/h2&gt;

&lt;p&gt;Fetching data manually is unhumanistic job to do even for 25 companies! Therefore, there are many companies that provide such services to extract the data automatically. In the following post, I'll describe the best way to scrape all certified accountants from the US by using &lt;a href="https://outscraper.com/google-maps-scraper/"&gt;Outscraper&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Let's get started
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;First of all, sign up to &lt;a href="https://app.outscraper.com/signup?redirect=/googleMaps"&gt;Outscraper&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open Google Maps scraper, enter categories, and select locations.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--MbWMs60i--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hsvlhiy6xfkbuaiyyo1j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--MbWMs60i--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hsvlhiy6xfkbuaiyyo1j.png" alt="Screen Shot 2021-03-23 at 10.50.53 AM"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Check advanced parameters.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--f3SCvoWO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ho3nffa5qd0ep1qi5ejx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--f3SCvoWO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ho3nffa5qd0ep1qi5ejx.png" alt="Screen Shot 2021-03-23 at 10.51.06 AM"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Press "Scrape data" and validate a few queries by opening them.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--AnHFSIgh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/19nhxhhdduc47js6vgie.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AnHFSIgh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/19nhxhhdduc47js6vgie.png" alt="Screen Shot 2021-03-23 at 10.53.15 AM"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Press "Confirm" and you will be offered to verify your payment method. Go to &lt;a href="https://app.outscraper.com/billing-info"&gt;billing information page&lt;/a&gt; by clicking "Verify" and connect a valid credit card. There is a &lt;a href="https://outscraper.com/google-maps-scraper/"&gt;Free Tier&lt;/a&gt; that you can use each month. You will not be charged for the usage belove the Free Tier.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NlqfvHmD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/82kr4l9ask8y6lvv1r5y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NlqfvHmD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/82kr4l9ask8y6lvv1r5y.png" alt="Screen Shot 2021-03-23 at 11.23.12 AM"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Once the pavement method is verified, move back to our tab and click "I've performed the action". The task should start and you should see the notification about it.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--w57d5Zc2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bppfxa54yo3wz8pj6gqh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--w57d5Zc2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bppfxa54yo3wz8pj6gqh.png" alt="Screen Shot 2021-03-23 at 11.03.06 AM"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open &lt;a href="https://app.outscraper.com/tasks"&gt;tasks page&lt;/a&gt; to monitor the progress of your task. For our case, the scraping task will take about 19 hours to be finished.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ruYg1nhs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i7xca3bhqnvpapkyuvvq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ruYg1nhs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i7xca3bhqnvpapkyuvvq.png" alt="Screen Shot 2021-03-23 at 11.16.12 AM"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;After any task is finished you will receive an email with the link to S3 storage where the results are saved for 30 days. Alternatively, you can download results from the &lt;a href="https://app.outscraper.com/tasks"&gt;tasks page&lt;/a&gt;.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Hjxg61i1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/65rl7xtv8yu44auzbcin.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Hjxg61i1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/65rl7xtv8yu44auzbcin.png" alt="Screen Shot 2021-03-23 at 11.10.16 AM"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Bonus
&lt;/h2&gt;

&lt;p&gt;Use the promotion code &lt;code&gt;GOOGLEMAPSSCRAPER&lt;/code&gt; on the &lt;a href="https://app.outscraper.com/profile"&gt;profile page&lt;/a&gt; to receive a 10% discount.&lt;/p&gt;

</description>
      <category>scraping</category>
      <category>localbusinesses</category>
      <category>google</category>
      <category>googlemaps</category>
    </item>
    <item>
      <title>How to scrape all the Google Play reviews from any app</title>
      <dc:creator>Vlad</dc:creator>
      <pubDate>Fri, 19 Mar 2021 18:11:05 +0000</pubDate>
      <link>https://dev.to/mvlad/how-to-scrape-all-the-google-play-reviews-from-any-app-2209</link>
      <guid>https://dev.to/mvlad/how-to-scrape-all-the-google-play-reviews-from-any-app-2209</guid>
      <description>&lt;h2&gt;
  
  
  Scrape Google Play review
&lt;/h2&gt;

&lt;p&gt;Manual extracting even for 25 reviews is a really boring job. Fortunately, there are some services that will do with a decent price or even with a Free tier.&lt;/p&gt;

&lt;p&gt;In the following post, I'll describe the extraction process of any amount of reviews from any app/movie/book into csv/excel files (check out my other posts on how to do it via API).&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting started
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Create an account at &lt;a href="https://outscraper.com/google-maps-extractor/"&gt;Outscraper&lt;/a&gt; - the service we are going to use to extract the data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open &lt;a href="https://app.outscraper.com/profile"&gt;Profile&lt;/a&gt; and connect a valid credit card. There is a &lt;a href="https://outscraper.com/google-play-reviews-scraper/"&gt;Free Tier&lt;/a&gt; that will be refreshed each month. It should be enough for some basic usage and you will not be charged for the usage belove the Free Tier.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Copy link to any app, movie, or book.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open Google Play scraper service and insert the link or app ID to the textbox &lt;a href="https://app.outscraper.com/google-play-reviews?query=com.facebook.katana"&gt;like this&lt;/a&gt;. Be aware that you can use IDs only for apps (like Facebook app ID: com.facebook.katana).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select language, sorting, and other parameters:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YUThoFxT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bz2idmte3ys3ub6rbokx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YUThoFxT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bz2idmte3ys3ub6rbokx.png" alt="Screen Shot 2021-03-19 at 8.03.13 PM"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Start the extraction.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Go to &lt;a href="https://app.outscraper.com/tasks"&gt;the tasks&lt;/a&gt; page and check for results.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Download the results:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3580VsUh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5m6lcoask3apmwjhqvtn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3580VsUh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5m6lcoask3apmwjhqvtn.png" alt="Screen Shot 2021-03-19 at 8.07.25 PM"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open the file:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--a4KH_OFM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2vs020gazym4b46n28am.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--a4KH_OFM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2vs020gazym4b46n28am.png" alt="Screen Shot 2021-03-19 at 8.15.57 PM"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Some extra
&lt;/h2&gt;

&lt;p&gt;Use the promotion code &lt;code&gt;SCRAPER2021&lt;/code&gt; on &lt;a href="https://app.outscraper.com/profile"&gt;profile page&lt;/a&gt; to receive a 10% discount.&lt;/p&gt;

</description>
      <category>scraping</category>
      <category>google</category>
      <category>play</category>
      <category>reviews</category>
    </item>
    <item>
      <title>How to Scrape Google Maps</title>
      <dc:creator>Vlad</dc:creator>
      <pubDate>Wed, 06 Jan 2021 20:32:32 +0000</pubDate>
      <link>https://dev.to/mvlad/how-to-scrape-google-maps-2ka</link>
      <guid>https://dev.to/mvlad/how-to-scrape-google-maps-2ka</guid>
      <description>&lt;h2&gt;
  
  
  Scrape Google Maps (Places)
&lt;/h2&gt;

&lt;p&gt;Professional marketers, researchers, and data scientists use the data from Google Maps to build models or reach clients. There is a vast amount of company contacts stored on Google that can be exported into a file. In the following article, I'll show the quickest and simplest way of doing so.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting started
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Create an account at &lt;a href="https://outscraper.com/google-maps-extractor/"&gt;Outscraper&lt;/a&gt; - the service we are going to use to extract the data and emails from companies' websites. Doing so manually even for 25 sites is unhumanistic.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open &lt;a href="https://app.outscraper.com/profile"&gt;Profile page&lt;/a&gt; and connect a valid credit card. There is a &lt;a href="https://outscraper.com/google-maps-extractor/"&gt;Free Tier&lt;/a&gt; that we can use each month. You will not be charged for the usage belove the Free Tier.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open &lt;a href="https://app.outscraper.com/googleMaps"&gt;Google Maps scraper&lt;/a&gt; and enter categories, locations, and other parameters.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Check the queries before starting a task.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Make sure your task is limited to the amount of the data that you are comfortable with (don't forget to check prices for the usage above the Free Tier).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Run the task.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;After any task is finished you will receive an email with the link to S3 storage where the results are saved. Alternatively, you can download results and see tasks progress from the &lt;a href="https://app.outscraper.com/tasks"&gt;Tasks page&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Tasks page:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zGf2s18K--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/f02xwylbe4t8qb3tw4ag.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zGf2s18K--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/f02xwylbe4t8qb3tw4ag.png" alt="Tasks page"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use this promotion code on the &lt;a href="https://app.outscraper.com/profile"&gt;Profile page&lt;/a&gt; to receive a 10% discount: &lt;code&gt;GOOGLEMAPSSCRAPER&lt;/code&gt;.&lt;/p&gt;

</description>
      <category>googlemaps</category>
      <category>google</category>
      <category>maps</category>
      <category>scraping</category>
    </item>
    <item>
      <title>How to scrape Google Maps in Python</title>
      <dc:creator>Vlad</dc:creator>
      <pubDate>Wed, 06 Jan 2021 19:33:28 +0000</pubDate>
      <link>https://dev.to/mvlad/how-to-scrape-google-maps-in-python-24i3</link>
      <guid>https://dev.to/mvlad/how-to-scrape-google-maps-in-python-24i3</guid>
      <description>&lt;h2&gt;
  
  
  Creating the scraper from scratch
&lt;/h2&gt;

&lt;p&gt;Developing your own Google Maps scraping tool might be a big challenge in case you don't have a few years of experience behind you. You will need to be prepared for plenty of challenges from Google - IP protection (proxies), cookies &amp;amp; sessions, browser emulation, site updates, etc.&lt;/p&gt;

&lt;h2&gt;
  
  
  More quick and stable way
&lt;/h2&gt;

&lt;p&gt;Fortunately, there are some good 3-rd party tools that you can easily integrate with your code and start scraping Google just within 5 minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting started
&lt;/h2&gt;

&lt;p&gt;Installation (Python 3+)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install google-services-api
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Usage&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;outscraper&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;ApiClient&lt;/span&gt;

&lt;span class="n"&gt;api_cliet&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ApiClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;api_key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;'SECRET_API_KEY_FROM_OUTSCRAPER'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;api_cliet&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;google_maps_search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;'restaurants brooklyn usa'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;language&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;'en'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;region&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;'US'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Response&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  'id': '3f6f8bd0-4073-4ca3-b92f-4caff9cb0456',
  'status': 'Success',
  'data': [
    {
      'name': 'The Loft Steakhouse',
      'full_address': '1306 40th St, Brooklyn, NY 11218',
      'borough': 'Borough Park',
      'street': '1306 40th St',
      'city': 'Brooklyn',
      'postal_code': '11218',
      'country_code': 'US',
      'country': 'United States of America',
      'us_state': 'New York',
      'state': 'New York',
      'plus_code': None,
      'latitude': 40.639734499999996,
      'longitude': -73.9868193,
      'time_zone': 'America/New_York',
      'site': 'http://www.theloftsteakhouse.com/',
      'phone': '+1 718-475-5600',
      'type': 'Steak house',
      'subtypes': 'Steak house, Fine dining restaurant, Kosher restaurant, Delivery Restaurant, Takeout Restaurant, Restaurant',
      'posts': None,
      'rating': 4.9,
      'reviews': 1638,
      'photos_count': 1054,
      'google_id': '0x89c25ad4507a6e2f:0x135c0e38302054ac',
      'place_id': 'ChIJL256UNRawokRrFQgMDgOXBM',
      ...
    }
   ...
  ]
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://pypi.org/project/google-services-api/"&gt;Python package page&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://app.outscraper.com/api-docs"&gt;API docs&lt;/a&gt;&lt;/p&gt;

</description>
      <category>google</category>
      <category>maps</category>
      <category>scrape</category>
      <category>python</category>
    </item>
    <item>
      <title>How to scrape Google Maps reviews (more than 5) in python</title>
      <dc:creator>Vlad</dc:creator>
      <pubDate>Mon, 28 Dec 2020 21:14:55 +0000</pubDate>
      <link>https://dev.to/mvlad/how-to-scrape-google-maps-reviews-more-than-5-3dn6</link>
      <guid>https://dev.to/mvlad/how-to-scrape-google-maps-reviews-more-than-5-3dn6</guid>
      <description>&lt;h2&gt;
  
  
  Scrape reviews with Google Places API?
&lt;/h2&gt;

&lt;p&gt;The official way of getting reviews from &lt;a href="https://developers.google.com/places/web-service/autocomplete#place_autocomplete_responses"&gt;Google Places API&lt;/a&gt; is limited to 5 reviews and it's barely enough even for the most simplest task.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“predictions” contains an array of places, with information about the&lt;br&gt;
place. The Places API returns up to 5 results.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Google Maps Reviews API by Outscraper
&lt;/h2&gt;

&lt;p&gt;Professional marketers and data-scientists employ many 3-d party services like &lt;a href="https://outscraper.com/google-maps-reviews-api/"&gt;Outscraper&lt;/a&gt; for their needs. It allows you to get started within 5 minutes.&lt;/p&gt;

&lt;p&gt;You can use &lt;a href="https://app.outscraper.com/googleReviews"&gt;UI version&lt;/a&gt; and extract reviews to CSV file or there is &lt;a href="https://outscraper.com/docs/api/"&gt;API&lt;/a&gt; and &lt;a href="https://pypi.org/project/google-services-api/"&gt;SDK&lt;/a&gt; that you can use from your code.&lt;br&gt;
In the following example, I'll show some demo using Python 3.&lt;/p&gt;
&lt;h2&gt;
  
  
  Extracting Google Maps Reviews using python SDK
&lt;/h2&gt;

&lt;p&gt;We will need python 3+ and Outscraper SDK&lt;br&gt;
&lt;code&gt;pip install google-services-api&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Extracting 100 reviews for &lt;a href="https://www.google.com/maps/place/Golden+Unicorn/@40.7129056,-74.0072196,13.86z/data=!4m5!3m4!1s0x89c25a2665c2cc5d:0xede58acf7633b27a!8m2!3d40.7136854!4d-73.9971873?shorturl=1"&gt;Golden Unicorn&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;outscraper&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;ApiClient&lt;/span&gt;

&lt;span class="n"&gt;api_cliet&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ApiClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;api_key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;'SECRET_API_KEY'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;reviews_response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;api_cliet&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;google_maps_business_reviews&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s"&gt;'Golden Unicorn, East Broadway, USA'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;language&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;'en'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;SECRET_API_KEY&lt;/code&gt; can be found on the &lt;a href="https://app.outscraper.com/profile"&gt;profile page&lt;/a&gt; after registration. There is a Free Tier that you can use each month.&lt;/p&gt;

&lt;p&gt;Response&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "id": "373f43de-7394-479b-a0bd-d2666def8ddf",
  "status": "Success",
  "data": {
    "name": "Golden Unicorn",
    "full_address": "18 E Broadway, New York, NY 10002",
    "borough": "Manhattan",
    "street": "18 E Broadway",
    "city": "New York",
    "postal_code": "10002",
    "country_code": "US",
    "country": "United States of America",
    "us_state": "New York",
    "state": "New York",
    "plus_code": null,
    "latitude": 40.7136857,
    "longitude": -73.99718659999999,
    "time_zone": "America/New_York",
    "site": "http://www.goldenunicornrestaurant.com/",
    "phone": "+1 212-941-0911",
    "type": "Cantonese restaurant",
    "subtypes": "Cantonese restaurant, Bar, Chinese restaurant, Dim sum restaurant",
    "posts": null,
    "rating": 4,
    "reviews": 2051,
    "photos_count": 2383,
    "google_id": "0x89c25a2665c2cc5d:0xede58acf7633b27a",
    "place_id": "ChIJXczCZSZawokRerIzds-K5e0",
    "reviews_link": "https://www.google.com/search?q=Golden+Unicorn,+18+E+Broadway,+New+York,+NY+10002&amp;amp;ludocid=17142260180301623930#lrd=0x89c25a2665c2cc5d:0xede58acf7633b27a,1",
    "reviews_id": "-1304483893407927686",
    "photo": "https://lh5.googleusercontent.com/p/AF1QipOilwEHwjKXdH9PAaq490iCTrpfaEfvfO3vNsxq",
    "working_hours": {
      "Monday": "9:30AM–3:30PM",
      "Tuesday": "9:30AM–3:30PM",
      "Wednesday": "9:30AM–3:30PM",
      "Thursday": "9:30AM–3:30PM",
      "Friday": "9:30AM–3:30PM",
      "Saturday": "9:30AM–4:30PM",
      "Sunday": "9:30AM–4:30PM"
    },
    "temporarily_closed": null,
    "about": {
      "Service options": {
        "Delivery": true,
        "Takeout": true
      },
      "Health &amp;amp; safety": {
        "Mask required": true,
        "Staff required to disinfect surfaces between visits": true
      },
      "Highlights": {
        "Great tea selection": true
      },
      "Popular for": {
        "Breakfast": true,
        "Lunch": true,
        "Dinner": true
      },
      "Accessibility": {
        "Wheelchair accessible entrance": true,
        "Wheelchair accessible seating": true,
        "Wheelchair accessible parking lot": false
      },
      "Offerings": {
        "Comfort food": true,
        "Small plates": true
      },
      "Dining options": {
        "Catering": true,
        "Dessert": true
      },
      "Amenities": {
        "Good for kids": true,
        "High chairs": true
      },
      "Atmosphere": {
        "Casual": true
      },
      "Crowd": {
        "College students": true,
        "Groups": true,
        "Tourists": true
      },
      "Planning": {
        "Dinner reservations recommended": true,
        "Accepts reservations": true,
        "Usually a wait": true
      }
    },
    "price_range": "$$",
    "reviews_per_score": {
      "1": 152,
      "2": 86,
      "3": 307,
      "4": 655,
      "5": 851
    },
    "verified": true,
    "reserving_table_link": null,
    "booking_appointment_link": "http://www.goldenunicornnyc.com/menu.aspx",
    "owner_id": "109794426950456075294",
    "owner_title": "Golden Unicorn",
    "owner_link": "https://www.google.com/maps/contrib/109794426950456075294",
    "location_link": "https://www.google.com/maps/place/Golden+Unicorn/@40.7136857,-73.99718659999999,14z/data=!4m8!1m2!2m1!1sGolden+Unicorn!3m4!1s0x89c25a2665c2cc5d:0xede58acf7633b27a!8m2!3d40.7136857!4d-73.99718659999999",
    "reviews_data": [
      {
        "google_id": "0x89c25a2665c2cc5d:0xede58acf7633b27a",
        "autor_link": "https://www.google.com/maps/contrib/109132427106491791258?hl=en-US",
        "autor_name": "Benjamin Qiu",
        "autor_id": "109132427106491791258",
        "review_text": "Keeping it real out here in CT\n\nWish I get to go inside but nonetheless had my first outdoor dimsum experience and was quite a positive experience.  Despite limited seating we were able to be seated with very little wait, the ordering process was simple with menu in both English and Chinese. Staff were very patient and professional, even made sure we were warm enough from the heating lamp. We ordered our favorite dishes and they were simply amazing.\nTimes are tough during COVID but this is one place that's doing things right. Will love to visit again soon.",
        "review_img_url": "https://lh5.googleusercontent.com/p/AF1QipPlgEuTFN8m_lePXzdcOCC0PA-fzV5Htc0Tk2eW",
        "owner_answer": null,
        "owner_answer_timestamp": null,
        "owner_answer_timestamp_datetime_utc": null,
        "review_link": "https://www.google.com/maps/reviews/data=!4m5!14m4!1m3!1m2!1s109132427106491791258!2s0x0:0xede58acf7633b27a?hl=en-US",
        "review_rating": 5,
        "review_timestamp": 1609111047,
        "review_datetime_utc": "12/27/2020 23:17:27",
        "review_likes": 0
      },
      {
        "google_id": "0x89c25a2665c2cc5d:0xede58acf7633b27a",
        "autor_link": "https://www.google.com/maps/contrib/100406104884094884994?hl=en-US",
        "autor_name": "Cynthia Gomez",
        "autor_id": "100406104884094884994",
        "review_text": null,
        "review_img_url": null,
        "owner_answer": null,
        "owner_answer_timestamp": null,
        "owner_answer_timestamp_datetime_utc": null,
        "review_link": "https://www.google.com/maps/reviews/data=!4m5!14m4!1m3!1m2!1s100406104884094884994!2s0x0:0xede58acf7633b27a?hl=en-US",
        "review_rating": 5,
        "review_timestamp": 1609018749,
        "review_datetime_utc": "12/26/2020 21:39:09",
        "review_likes": 0
      },
      {
        "google_id": "0x89c25a2665c2cc5d:0xede58acf7633b27a",
        "autor_link": "https://www.google.com/maps/contrib/112779066937104499139?hl=en-US",
        "autor_name": "Steven Magallanes",
        "autor_id": "112779066937104499139",
        "review_text": null,
        "review_img_url": null,
        "owner_answer": null,
        "owner_answer_timestamp": null,
        "owner_answer_timestamp_datetime_utc": null,
        "review_link": "https://www.google.com/maps/reviews/data=!4m5!14m4!1m3!1m2!1s112779066937104499139!2s0x0:0xede58acf7633b27a?hl=en-US",
        "review_rating": 4,
        "review_timestamp": 1608797697,
        "review_datetime_utc": "12/24/2020 08:14:57",
        "review_likes": 0
      },
      {
        "google_id": "0x89c25a2665c2cc5d:0xede58acf7633b27a",
        "autor_link": "https://www.google.com/maps/contrib/103001143875467131446?hl=en-US",
        "autor_name": "Sandra",
        "autor_id": "103001143875467131446",
        "review_text": "(Translated by Google) I've been here before and have never forgotten my experience. I want to go back so bad. The meal was excellent.\n\n(Original)\nIch war schon einmal hier und habe meine Erfahrung nie vergessen. Ich möchte so sehr zurückgehen. Das Essen war ausgezeichnet.",
        "review_img_url": null,
        "owner_answer": null,
        "owner_answer_timestamp": null,
        "owner_answer_timestamp_datetime_utc": null,
        "review_link": "https://www.google.com/maps/reviews/data=!4m5!14m4!1m3!1m2!1s103001143875467131446!2s0x0:0xede58acf7633b27a?hl=en-US",
        "review_rating": 5,
        "review_timestamp": 1608058639,
        "review_datetime_utc": "12/15/2020 18:57:19",
        "review_likes": 0
      },
...
      {
        "google_id": "0x89c25a2665c2cc5d:0xede58acf7633b27a",
        "autor_link": "https://www.google.com/maps/contrib/107401903433772909404?hl=en-US",
        "autor_name": "Chris Clarke",
        "autor_id": "107401903433772909404",
        "review_text": "One of the best places for dim sum. Delicious",
        "review_img_url": null,
        "owner_answer": null,
        "owner_answer_timestamp": null,
        "owner_answer_timestamp_datetime_utc": null,
        "review_link": "https://www.google.com/maps/reviews/data=!4m5!14m4!1m3!1m2!1s107401903433772909404!2s0x0:0xede58acf7633b27a?hl=en-US",
        "review_rating": 5,
        "review_timestamp": 1605630176,
        "review_datetime_utc": "11/17/2020 16:22:56",
        "review_likes": 0
      }
    ]
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://pypi.org/project/google-services-api/"&gt;Python package page&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://app.outscraper.com/api-docs"&gt;API docs&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>google</category>
      <category>reviews</category>
      <category>places</category>
    </item>
  </channel>
</rss>
