当前位置:网站首页>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
边栏推荐
猜你喜欢
Vant3 - click on the corresponding name name to jump to the next page corresponding to the location of the name of the TAB bar
【超详细】手把手教你搭建MongoDB集群搭建
typescript58 - generic classes
typescript53 - generic constraints
Modulo operation (MOD)
MATLAB三维绘图命令plot3入门
新一代服务网关Gateway的实践笔记
WMS仓储管理系统能解决电子行业哪些仓库管理问题
C# wpf使用ffmpeg命令行实现录屏
BGP实验(含MPLS)
随机推荐
.NET Static Code Weaving - Rougamo Release 1.1.0
Web3 security risks daunting?How should we respond?
新一代服务网关Gateway的实践笔记
面试必问的HashCode技术内幕
跨域问题解决方式 代理服务器
outputBufferIndex = mDecode.dequeueOutputBuffer(bufferInfo, 0) 一直返回为-1
2022年上半年各大厂Android面试题整理及答案解析(持续更新中......)
vxe-table 从页面批量删除数据 (不动数据库里的数据)
ThreadLocal
.NET静态代码织入——肉夹馍(Rougamo) 发布1.1.0
jmeter distributed stress test
typescript51 - basic use of generics
How to find the cause of Fiori Launchpad routing errors by single-step debugging
【正则表达式】笔记
typescript57 - Array generic interface
typescript48-函数之间的类型兼容性
【链路聚合原理及配置】
虚拟机CentOS7中无图形界面安装Oracle
typescript54-泛型约束
带你造轮子,自定义一个随意拖拽可吸边的悬浮View组件