Yelp recently updated their website and now my selector for the star ratings doesn't work. Does anyone have any suggestions on how I could pull the star rating? (e.g. 5 stars, 4.5 stars, 2 stars, etc) I used to have it scrape an html element and it would say 5-star, 4.5-star, etc but now I can't quite figure it out.
The problem comes from different stars having different code and I don't know how to capture all the different star codes.
Here's the sitemap that I'm working with:
{"_id":"yelp-Salt-Lake-City-UT","startUrl":["https://www.yelp.com/search?find_desc=Eyewear%20%26%20Opticians&find_loc=Salt%20Lake%20City%20UT&start=0&sortby=rating","https://www.yelp.com/search?find_desc=Eyewear%20%26%20Opticians&find_loc=Salt%20Lake%20City%20UT&start=20&sortby=rating","https://www.yelp.com/search?find_desc=Eyewear%20%26%20Opticians&find_loc=Salt%20Lake%20City%20UT&start=30&sortby=rating","https://www.yelp.com/search?find_desc=Eyewear%20%26%20Opticians&find_loc=Salt%20Lake%20City%20UT&start=40&sortby=rating"],"selectors":[{"id":"business","type":"SelectorLink","parentSelectors":["_root"],"selector":"li:nth-of-type(n+6) a.link-color--inherit__373c0__3dzpk.link-size--inherit__373c0__1VFlE","multiple":true,"delay":0},{"id":"name","type":"SelectorText","parentSelectors":["business"],"selector":"h1","multiple":false,"regex":"","delay":0},{"id":"website","type":"SelectorText","parentSelectors":["business"],"selector":"a[target='_blank']","multiple":false,"regex":"","delay":0},{"id":"rating","type":"SelectorHTML","parentSelectors":["business"],"selector":"div.i-stars--large-4-half__373c0__2rd5j","multiple":false,"regex":"","delay":0},{"id":"total-reviews","type":"SelectorText","parentSelectors":["business"],"selector":"p.text-color--mid__373c0__3G312.text-size--large__373c0__1568g","multiple":false,"regex":"","delay":0}]}