笔记 -- [爬虫] -- bs4 FeatureNotFound: Couldn‘t find a tree builder with the features you requested
bs4 FeatureNotFound: Couldn’t find a tree builder with the features you requested: lxml. Do you need to install a parser library?
使用了 pip install lxml 安装好了,却依旧报错
解决方法:
将:
bs4.BeautifulSoup(html, ‘lxml’)
改为
bs4.BeautifulSoup(html, ‘html.parser’)
来自stackflow的解答:
1.此于mac有关
2.对我的问题有效的方案
3.其他