遇到一个奇葩的问题,我已经安装了lxml,但是运行程序一直报bs4.FeatureNotFound: Couldn’t find a tree builder with the features you requested: lxml. Do you need to install a parser library?
最后解决办法:将BeautifulSoup(html,‘lxml’)改成:BeautifulSoup(html, ‘html5lib’)
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need
最新推荐文章于 2024-08-03 13:19:01 发布