[error:没有解析库]Couldn't find a tree builder with the features you requested: xml. Do you need to install a parser library?

将代码拷贝到服务器上运行,发生错误提示需要新安装parser library.
查看代码中发现有以下内容:

soup = BeautifulSoup(open(fp), 'xml')

安装解析库即可:

pip install lxml
posted @ 2018-03-07 11:59  bingo彬哥  阅读(2498)  评论(0编辑  收藏  举报
本站总访问量