xpath something like
Code:
"//span[@class="rating_widget"]/span/@class"
or
Code:
"//span[contains(@class, "section_updateRating")]/@class"
These will return a string containing "avg-NNN section_updateRating" where NNN is the rating. For the C Programming book, the string is "avg-4h section_updateRating", where the 'h' means 1/2. For another book I see "avg-3 section_updateRating" and it shows 3 stars.