How to scrape TripAdvisor rating (image)?

I'm trying to scrape the rating of each review for an attraction on Trip Advisor. The rating appears as an image (5 shaded blobs) and I'd like to know if it's possible to scrape the number of blobs which are shaded for each review? Any help would be appreciated. Thanks

Url: https://www.tripadvisor.co.uk/Attraction_Review-g226865-d189258-Reviews-Disneyland_Paris-Marne_la_Vallee_Seine_et_Marne_Ile_de_France.html

Sitemap:
{"_id":"disneyland","startUrl":["https://www.tripadvisor.co.uk/Attraction_Review-g226865-d189258-Reviews-Disneyland_Paris-Marne_la_Vallee_Seine_et_Marne_Ile_de_France.html"],"selectors":[{"id":"Rating","type":"SelectorText","parentSelectors":["_root"],"selector":"div#review_651378943.reviewSelector span.ui_bubble_rating","multiple":false,"regex":"","delay":0}]}

Scrape the alt-text of the image, not the image itself, using a selector:

Type: Element attribute
Attribute name: alt

That will yield text like "4 of 5 bubbles". Hope this helped!

1 Like

Thank you! Very helpful.