bs4.FeatureNotFound: Couldn’t find a tree builder with the features you requested: lxml.


python3 bs4解析網頁時報錯: bs4.FeatureNotFound: Couldn’t find a tree builder with the features you requested: lxml.

bs4調用了python自帶的html解析器,python3沒有html解釋器,所以會報錯。
給python3裝一個html解析器:
pip3 install lxml


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM