将代码拷贝到服务器上运行,发生错误提示需要新安装parser library.
查看代码中发现有以下内容:
soup = BeautifulSoup(open(fp), 'xml')
安装解析库即可:
pip install lxml
[error:没有解析库]Couldn't find a tree builder with the features you requested: xml. Do you need to install a parser library?
原文地址:https://www.cnblogs.com/everfight/p/lxml.html
时间: 2024-10-31 02:58:01