解决BeautifulSoup警告未显示指定解析器问题

安装python3 解析器:

pip3 install lxml

显式指定解析器:

bf = BeautifulSoup(res.text,"lxml")

posted @ 2020-09-23 09:09  棂信  阅读(202)  评论(0编辑  收藏  举报