I am trying to scrape rating off of trustpilot.com.
Is it possible to extract a class name using scrapy? I am trying to scrape a rating which is made up of five individual images but the images are in a class with the name of the rating for example if the rating is 2 starts then:
<div class="star-rating count-2 size-medium clearfix">...
if it is 3 stars then:
<div class="star-rating count-3 size-medium clearfix">...
So is there a way I can scrape the class count-2
or count-3
assuming a selector like .css('.star-rating')
?