项目场景:
FeatureNotFound: Couldn’t find a tree builder with the features you requested: lxml. Do you need to install a parser library?问题解决
问题描述:
soup=BeautifulSoup(content,'html-parser')
FeatureNotFound: Couldn’t find a tree builder with the features you requested: lxml. Do you need to install a parser library?
原因分析:
语法错误:html-parser --》 html.parser
解决方案:
将 - 修改为 .