Hi guys , Im a little unfamiliar with Python . Hope you can take a look at this:
Im trying to extract the number 7.2 from the html string below using python:
I thought this would be code to do this .But how come this doesnt work ?
Could it be that there some special structures in the html file again which I missed out ?
Im trying to extract the number 7.2 from the html string below using python:
Code:
'''<a href="/ratings_explained">weighted average</a> vote of <a href="/List?ratings=7">7.2</a> / 10</p><p>'''
Code:
averageget = re.compile('<a href="/List?ratings=7">(.*?)</a>')
average = averageget.findall(htmlr)
Comment