- Because of the XPath was invalid in several zomato page, the reviews may not fully scraped.
- Total reviews per page are 5 reviews. The script will 'click' the load more button 20 times, of course you can change
it in
scraper.py
if want to scrape more reviews.
git clone https://github.com/AgiMaulana/zomato-reviews-scraper/
pip install -r requirements.txt
Download latest Chrome web driver from https://sites.google.com/a/chromium.org/chromedriver/downloads
Or if you on Linux/Ubuntu
wget https://chromedriver.storage.googleapis.com/2.43/chromedriver_linux64.zip
Extract the binary then move to /usr/bin/
sudo mv chromedriver /usr/bin/chromedriver
sudo chown root:root /usr/bin/chromedriver
sudo chmod +x /usr/bin/chromedriver
add your restaurant Zomato reviews page by add the URL to urls.txt
then
python main.py
This project is under the MIT Lisence