bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml

 

解决办法:

1.安装 

pip install lxml

pip install html_parser

2.将  BeautifulSoup(html,'html.parser')  改为  BeautifulSoup(html,'lxml') , 或 反之

 

posted @ 2021-12-05 19:44  emanlee  阅读(569)  评论(0编辑  收藏  举报