当前位置:网站首页>FeatureNotFound( bs4.FeatureNotFound: Couldn‘t find a tree builder with the features you requested:
FeatureNotFound( bs4.FeatureNotFound: Couldn‘t find a tree builder with the features you requested:
2022-08-04 00:59:00 【共饮一杯无】
问题描述:
代码如下:
from bs4 import BeautifulSoup
# 在此实现代码
def fetch_text(html):
soup = BeautifulSoup(html, 'lxml')
result = soup.text
return result
执行到这行:BeautifulSoup(html, ‘lxml’),报如下错误:
in init
raise FeatureNotFound(
bs4.FeatureNotFound: Couldn’t find a tree builder with the features you requested: lxml. Do you need to install a parser library?
执行如下命令,下载安装lxml:
pip install lxml
边栏推荐
猜你喜欢
随机推荐
The problem of disorganized data output by mnn model
哎,又跟HR在小群吵了一架!
typescript57-数组泛型接口
C # WPF equipment monitoring software (classic) - the next
如何通过单步调试的方式找到引起 Fiori Launchpad 路由错误的原因试读版
114. How to find the cause of Fiori Launchpad routing error by single-step debugging
C# WPF设备监控软件(经典)-下篇
【日志框架】
【正则表达式】笔记
咱们500万条数据测试一下,如何合理使用索引加速?
扩展卡尔曼滤波EKF
ThreadLocal
Observability:你所需要知道的关于 Syslog 的一些知识
【虚拟化生态平台】虚拟化平台esxi挂载USB硬盘
【详细教程】一文参透MongoDB聚合查询
电子组装行业对MES管理系统的需求分析
typescript56 - generic interface
《Greenplum构建实时数据仓库实践》简介
观察者模式
BioVendor人Clara细胞蛋白(CC16)Elisa试剂盒检测步骤