python我已经下载过html5lib但是在bs4中使用却显示没有这个html5lib
from bs4 import BeautifulSoup
html = "<p><a href='www.baidu.com'>你好</a></p>"
soup = BeautifulSoup(html,"html5lib")
print(soup)
#以下是报错信息
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?
ps:在使用lxml、html.parser等解析器时均可使用,只有html5lib不能使用
pps:由于我需要爬取网页信息标签写的不规范,标签有缺失一点要使用
html5lib才可以解析,不能使用其他解析器