ask the gods, how can I climb out of the last 2.1610 in the gray part of the html of this web page?
and I have a series of html pages that are highly similar to this page. I want to climb out of this string of numbers in the same position. How should I use beautifulsoup to complete my code?
now my code is as follows (the comment section uses the code of the first respondent):
def getLinks(articleUrl):
html=urlopen(articleUrl)
-sharps = "<tr><td><b><a href=".././statistics/power" title="Exponent of the power-law degree distibution">Power law exponent (estimated) with d<sub>min</sub></a></b></td><td>2.1610(d<sub>min</sub> = 2) </td></tr>"
-sharpsoup = BeautifulSoup(s, "html.parser")
-sharpprint(soup.find_all("td")[1].contents[0][:-2])