'features="html.parser"' to the BeautifulSoup constructor.

安装:pip install lxml

然后修改:bso = BeautifulSoup(html.read(),"html.parser")

原文地址:https://www.cnblogs.com/zjazn/p/15368611.html