def get_review_rating(soup):
    """ Analyze "soup" to extract rating review.

    Args:
      soup -- bs4.BeautifulSoup from http request of book url.
    Return:
        rating review
    """
    str_to_number = {"One": 1, "Two": 2, "Three": 3, "Four": 4, "Five": 5}
    p = soup.find("p", {"class": "star-rating"})
    str_rating = p["class"][1]
    review_rating = str_to_number.get(str_rating, 0)

    return int(review_rating)