beautifulsoup ‘Couldn't find a tree builder with the features you requested: lxml’错误

服务器运行beautifulsoup时出错,解决办法:

重新安装lxml

pip uninstall lxml

pip install lxml

还不行就换解析器:bs=BeautifulSoup(res.content,'html.parser')

posted @ 2021-05-10 17:13  shang的学习园地  阅读(180)  评论(0)    收藏  举报