Its not
If i do test with your html.
sorting_1
but class="rating sorting\
_1"If i do test with your html.
from bs4 import BeautifulSoup soup = BeautifulSoup(your_html, 'lxml') td_sort = soup.find('td', class_="rating sorting\_1") print(td_sort) print(td_sort.text)
Output:<td class="rating sorting\_1" style="color: rgb(0, 0, 0);">98.35</td>
98.35