logo
Loading...

使用html5lib 出現解析錯誤 - Cupoy

soup = BeautifulSoup(r.text, "html5lib")回傳錯誤訊息Feat...

pycrawler,pycrawler-d08

使用html5lib 出現解析錯誤

2019/12/03 11:06 AM
Python網路爬蟲論壇
林建宏
觀看數:0
回答數:2
收藏數:1
pycrawler
pycrawler-d08

soup = BeautifulSoup(r.text, "html5lib")

回傳錯誤訊息

FeatureNotFound: Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?

是為什麼呢?執行前有!pip install html5lib