from bs4 import BeautifulSoup
def get_text(html):
soup = BeautifulSoup(html)
return soup.get_text()
df['aaa'] = df['aaa'].apply(get_text)
from bs4 import BeautifulSoup
def get_text(html):
soup = BeautifulSoup(html)
return soup.get_text()
df['aaa'] = df['aaa'].apply(get_text)
本文标题:提取html中的text文本
本文链接:https://www.haomeiwen.com/subject/ilzbqrtx.html
网友评论