python爬虫并且将数据写入Excel,运行过程中报错如下:
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?
原因:不可以使用 BeautifulSp(lxml,'lxml_parser')
解决办法:安装lxml库
具体操作如下:
①pChar工具,左上角File→Settings;如下图一
②Python Interpreter→点击左下角的【+】,如下图二;
③搜索框输入“lxml”,下载安装,如下图三;
等待几分钟,安装成功,如下图四。