You'll need Python 3 and Node.js to run the code in this project.
The review fetching script is written in Node.js and uses Google Chrome's Puppeteer. First, install all of the Node dependencies.
$ npm install
Now you can fetch reviews. If the URL for a business is
https://www.yelp.com/biz/tartine-bakery-and-cafe-san-francisco
, then
tartine-bakery-and-cafe-san-francisco
is the business id. Pass this
into /bin/reviews
to get all the reviews for the business in JSON
format.
$ ./bin/reviews tartine-bakery-and-cafe-san-francisco