Yelp / yelp-fusion

Yelp Fusion API
https://yelp.com/developers
MIT License
399 stars 404 forks source link

Yelp Fusion Business Reviews - Analytics #639

Closed oporter1 closed 7 months ago

oporter1 commented 2 years ago

Overview

Description

I understand that there is a limit to 3 reviews for the Yelp Fusion Business API for reviews. I want to bring all of the reviews for a single company so their analytics team can create some reports. Is there a way around the 3 reviews if it is just for analytics? Is it possible to purchase more than the 3?

More information

(Fill this section out if applicable (for things like bugs or questions))

Endpoint

https://api.yelp.com/v3/businesses/{businessName}/reviews

ghost commented 2 years ago

Hi Olivia. If the Yelp Fusion Business API will not collect all of the reviews, have you considered making a web scraper to do it manually? I don't know how hard it is to parse the HTML that Yelp would serve you, but maybe it's okay.

ghost commented 2 years ago

I remembered your post when I ran across some repos on Github while trying to do my own Yelp scraping. See below. You may have to modify the Python scripts slightly if Yelp changed the format of their website since these repos were last updated. There seem to be other such repos on Github, possibly more recent, I didn't look at all of them (https://www.google.com/search?client=firefox-b-1-d&q=yelp+review+scraper+github)

https://github.com/thomkitchen/yelp-review-scraper ("Web scraper that grabs all reviews for a business's yelp page and returns them as a string for parsing.")

https://github.com/m-millions/yelp-reviews-scraper (This one does use Yelp Fusion Business API)

oporter1 commented 2 years ago

thank you @anthonyangel1982 I will check it out and get back to you if it works. For now it seems like web scraping is the only way to go about this.