title: How to scrape google maps for all data using python
body: <p>I am trying to scrape the title, phone number, website, address, rating, number of reviews of a place from google maps using python. For example, the restaurant Pike's Landing (see google maps URL below) needs all the information. I want to pull those in python.</p>
  <p>URL: <a href="https://www.google.com/maps?cid=15423079754231040967&amp;hl=en" rel="nofollow noreferrer">https://www.google.com/maps?cid=15423079754231040967&amp;hl=en</a></p>
  <p>I can see HTML code when I inspect but when I have used beautiful soup for <strong>scraping</strong> all codes are converted. From stack overflow, I have found a solution for the only number of review as following code,</p>
  <pre><code>import re
  import requests
  from ast import literal_eval
  
  urls = [
  'https://www.google.com/maps?cid=15423079754231040967&amp;hl=en',
  'https://www.google.com/maps?cid=16168151796978303235&amp;hl=en']
  
  for url in urls:
      for g in re.findall(r'\[\\&quot;http.*?\d+ reviews?.*?]', requests.get(url).text):
          data = literal_eval(g.replace('null', 'None').replace('\\&quot;', '&quot;'))
          print(bytes(data[0], 'utf-8').decode('unicode_escape'))
          print(data[1])
  </code></pre>
  <p>But I need all the data. I can use Google Maps API to actual data but getting phone number, rating, review is not free now. So that I want to escape data from the frontend.</p>
  <p>Please help me.</p>