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

安装:pip install lxml

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

 

 

posted @ 2021-10-05 14:44  小庄的blog  阅读(216)  评论(0编辑  收藏  举报