I'm using BeautifulSoup and requests for web scraping. I know how to extract attribute between tags, but if what I want is the number `'4.31'` below in a tag, any idea how to get it?

```py
<div class="starRating" title="4.31">
<svg
 ...
</svg>
</div>

```

I've tried:

```py
soup.find('div',{'class':'starRating'})
soup.find('title')

```

which returns nothing, so the number is basically the tag...