(body)
| 70 | |
| 71 | @staticmethod |
| 72 | def get_rating(body): |
| 73 | rating = 0.0 |
| 74 | text = body.find("span", {"class": "star_m"}) |
| 75 | if text is not None: |
| 76 | for item in text: |
| 77 | rating += float(item["class"][0][1:]) / 10 |
| 78 | |
| 79 | return rating |
| 80 | |
| 81 | @staticmethod |
| 82 | def get_rating_count(body): |
no outgoing calls
no test coverage detected