Obtenez du texte sans étiquettes intérieures en sélénium

data = '''<td height="21" class="xl7024240">Other Financial Services<font class="font711087"><sup>1</sup></font></td>'''

from bs4 import BeautifulSoup
import bs4

soup = BeautifulSoup(data, 'html.parser')

external_span = soup.find('td')

text = []
for x in external_span:
    if isinstance(x, bs4.element.NavigableString):
        text.append(x.strip())
print(" ".join(text))
Cruel Centipede