Restaurant data scraping

Restaurants in Nepal is scraped which is provided by google using Selenium web automation. The data are then stored in csv file named as scraping.csv for storing all restaurants information and review.csv for restaurants review posted by the users in www.google.com.


Execution

  1. Download and install Python Version 3.7.1 and also download Google Chrome

  2. Clone the repository and open the terminal in cloned directory then install all the required dependencies from requirements.txt.

     pip install -r requirements.txt 
    
  3. Run 'scrape.py' in terminal:

     python scrape.py
    
  4. To turn on the headless mode, Run 'scrape.py' file by using following command in terminal:

     python scrape.py --headless
    
  5. Now the headless mode is enabled and the elements are scraped and placed in Record folder.