Im trying to extract the number 7.2 from the html string below using python:
Expand|Select|Wrap|Line Numbers
- '''<a href="/ratings_explained">weighted average</a> vote of <a href="/List?ratings=7">7.2</a> / 10</p><p>'''
Expand|Select|Wrap|Line Numbers
- averageget = re.compile('<a href="/List?ratings=7">(.*?)</a>')
- average = averageget.findall(htmlr)