html中去除标签直接获取所有文本的方法

soup = BeautifulSoup(html,'html.parser')
print(soup.get_text())

posted @ 2021-09-26 13:01  总得前行  阅读(172)  评论(0编辑  收藏  举报