To store reviews and rating of a particular place by using its placeid in an sqlite database format.
(Make sure to replace the chromeriver executable file with your version)
- 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:
- Scroll through as many reviews as required. (Scrolling is necessary for extraction)
- The 'greviewdb.sqlite' will store all the reviews and corresponding info.
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;
- Run the
ganalyse.py
script.