bs4.FeatureNotFound: Couldn’t find a tree builder with the features you requested: lxml. Do you need to install a parser library?
1
出现问题:python3使用BeautifulSoup进行网页爬取,报错如上,使用python3,运行平台为pycharm
解决方法:soup = BeautifulSoup(content, ‘html.parser’)
bs4.FeatureNotFound: Couldn’t find a tree builder with the features you requested: lxml. Do you need to install a parser library?
1
出现问题:python3使用BeautifulSoup进行网页爬取,报错如上,使用python3,运行平台为pycharm
解决方法:soup = BeautifulSoup(content, ‘html.parser’)