Scraper of Google Maps reviews. The code allows to extract the most recent reviews starting from the url of POI reviews.
Follow these steps to use the scraper:
-
Download Chromedrive from here.
-
Install Python packages from requirements file, either using pip, conda or virtualenv:
`conda create --name scraping python=3.6 --file requirements.txt`
Note: Python >= 3.6 is required.
The scraper takes two parameters in input:
--i
: input file, containing a list of urls that point to Google Maps place reviews (default: urls.txt).--N
: the number of reviews we want to retrieve, starting from the most recent (default: 100).
Example:
python scraper.py --N 50
generates a csv file containing last 50 reviews of places present in urls.txt
The config.json file allows to set the directory to store output csv, as well as their filenames.