当前位置:网站首页>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
边栏推荐
- What warehouse management problems can WMS warehouse management system solve in the electronics industry?
- Observability:你所需要知道的关于 Syslog 的一些知识
- 哎,又跟HR在小群吵了一架!
- 轻量级网络整理及其在Yolov5上的实现
- Nanoprobes丨Nanogold-抗体和链霉亲和素偶联物
- 2023年航空航天、机械与机电工程国际会议(CAMME 2023)
- NLP resources that must be used for projects [Classified Edition]
- 有没有jdbc 链接优炫数据库文档及示例?
- Analysis: What makes the Nomad Bridge hack unique
- Apache DolphinScheduler新一代分布式工作流任务调度平台实战-中
猜你喜欢
随机推荐
MySQL回表指的是什么
SQL优化的一些建议,希望可以帮到和我一样被SQL折磨的你
TypeScript学习
The problem of disorganized data output by mnn model
《The Google File System》新说
C# wpf使用ffmpeg命令行实现录屏
Apache DolphinScheduler新一代分布式工作流任务调度平台实战-中
C语言 函数递归
ML18-自然语言处理
typescript51-泛型的基本使用
身为程序员的我们如何卷死别人?破局重生。
Nanoprobes Alexa Fluor 488 FluoroNanogold 偶联物
迭代扩展卡尔曼滤波IEKF
共享新能源充电桩充电站建设需要些什么流程及资料?
c语言分层理解(c语言指针(上))
C# WPF设备监控软件(经典)-下篇
Mvc、Mvp和Mvvm
因为一次bug的教训,我决定手撕Nacos源码(先撕客户端源码)
2015年开源大事件汇总
Google Earth Engine ——利用公开的河流数据计算河流的有效宽度








