ishijo / Reviews-based-on-place-ids

To scrape and store Google reviews and ratings of a particular place (by using its PlaceID) in an SQLite database.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

To store reviews and rating of a particular place by using its placeid in an sqlite database format.

Tools used

(Make sure to replace the chromeriver executable file with your version)

Walkthrough

  • Navigate to the Project directory and run the greview.py script.
python greview.py
  • Mention the Location of your choice (be mindful of the typos!) when prompted as:
    [Example]
(To exit, Enter 'n')
Enter Location: Mall of India, Noida
  • Provided you installed the appropriate chromedriver version, a seperate chrome window should open as follows:

Chrome Window

  • Scroll through as many reviews as required. (Scrolling is necessary for extraction)
  • The 'greviewdb.sqlite' will store all the reviews and corresponding info.

Structure of Database

Stored data reviews

Note: The sqlite file won't retain any reviews after the next run of the script. In order change this, edit (see 'greview.py'):

DROP TABLE IF EXISTS Reviews;
DROP TABLE IF EXISTS places;

Analysis

  • Run the ganalyse.py script.

About

To scrape and store Google reviews and ratings of a particular place (by using its PlaceID) in an SQLite database.


Languages

Language:Python 100.0%