'height: 18px; .
scores = soup.find_all('tr', {'style': 'height:18px;'}, limit=None)
"height:18px;", 50 . height:18px; , 613 .
You need to edit this line to find lines that have height: 18px; style (and other meanings). You can pass the regex as an argument to the style as per the documentation , maybe something like this:
soup.find_all('tr', style = re.compile('height:18px'), limit=None)
source
share