/GoogleMaps-Restaurant-Scraper

A python scraper for scraping Restaurants from Google Maps

Primary LanguageHTMLApache License 2.0Apache-2.0

Scraping Bangladeshi Restaurants from GoogleMaps


Made with Jupyter nbviewer Open in HTML

Summary

In this project I created a scraper in python using Google Places API to scrap Restaurants' information from all over Bangladesh. Moreover added some visualizations according to their ratings, reviews and price level.

About Dataset

There are two versions of Dataset here

  • Raw Restaurant Dataset : This contains the place ID, name logitude, latitude, ratings, number of reviews and price level and address of each restaurant. Some of the restaurants may not be in Bangladeshi borders.
  • Final Bangladeshi Restaurant Dataset : This contains name, logitude, latitude, ratings, number of reviews and price level of each restaurant. All of the restaurants are inside Bangladesh.

Prerequisite

  • A Google API key with Google Places API Web Service and Google Maps Geocoding API activated against it. Check Google Places API for more details

  • A location list of every Upazilla/Thana along with its District of Bangladesh. In my case I used Mobile network coverage in Bangladeshi Upazila or Thana from kaggle to collect the locations around Bangladesh. Here you can see my collected location list.

Preview

Most Popular Restaurant Names

Restaurant Heat Map

Mostly Reviewed Restaurants' Area

Expensive Restaurants' Area

Built With

python 3.7.12
python-google-places 1.4.2
folium 0.8.3
geopandas 0.10.2
wordcloud 1.5.0