📅  最后修改于: 2022-03-11 14:58:45.177000             🧑  作者: Mango
def get_true_text(tag):
children = tag.find_elements_by_xpath('*')
original_text = tag.text
for child in children:
original_text = original_text.replace(child.text, '', 1)
return original_text