Using Yelp Data to Predict Restaurant Closure
towardsdatascience.com
towardsdatascience.com
I would probably try new restaurants more frequently if I could be more sure I wasn't gonna pay $10 for a $5 burger and help buy some sleazy J1-slave-driver (owner is too nice of a word) a new Land Rover in the process.
---
Oh, I see he's using the kaggle data. That's not guaranteed to be reliable.
I wrote a scraper which pulled address info / phone number / star rating / review count for pretty much every restaurant in the US.
It was "easy" because all of that data is available within the search page, and you just need to correctly parse it out.
The hardest part was getting around their really crazy rate limiting and IP blocking.
I managed to get myself IP banned from yelp prior to ever trying to scrape by just doing a bunch of searches manually pretty quickly over like 20 min, next thing I knew I could no longer access anything on Yelp.
1 https://web.archive.org/save/[url] and most recent crawl: http://web.archive.org/web/20180109124942/https://yelp.com/
2 By incremental searches that each return under 1000 results.
The other huge factor is cost of labor. Maybe looking at the minimum wage could be another feature. The news usually has those articles about how restaurants are struggling and the incremental minimum wage increase will hurt their business. It'd be interesting to see how strong of a factor that is in restaurant closures.
Also factors that could be tough to get but important * Cost of the ingredients like meat, vegetables etc.. * General Economic conditions, are consumers going out to eat?
Further, it seems like the results of this will be used to deny loans to restaurants that are not doing so great, thus ensuring that they fail because they can't get funding for renovations and improvements.