Yelp Star Ranking


#1

I am trying to capture the rating score from Yelp reviews and cannot figure out how to select the number of stars given for a particular place or product. When hovering over the object (the stars) a text box appears, showing the number of stars a user has given in their review.

Is there a way to select this object to include with the other rows of data like review, name, date and location?

Thanks!
Keith


#2

Hi Keith!

You’ll want to use Manual XPath to pull the the number of stars for a review on Yelp (https://www.import.io/user-guide/best-practices-tips-and-tricks/using-manual-xpaths/):

//div[@class="review-content"]//div[contains(@class,"stars")]/@title

You should then be able to use the Regular Expression function to pull out the actual rating. Hope that helps out!