当前位置:网站首页>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
边栏推荐
猜你喜欢

typescript48-函数之间的类型兼容性

typescript55 - generic constraints

win10+cuda11.7+pytorch1.12.0 installation

Nanoprobes Alexa Fluor 488 FluoroNanogold 偶联物

600MHz频段来了,它会是新的黄金频段吗?

Nanoprobes丨Nanogold-抗体和链霉亲和素偶联物

Apache DolphinScheduler新一代分布式工作流任务调度平台实战-中

咱们500万条数据测试一下,如何合理使用索引加速?

手撕Gateway源码,今日撕工作流程、负载均衡源码

ASP.NET 获取数据库的数据并写入到excel表格中
随机推荐
C 学生管理系统_添加学生
【虚拟化生态平台】虚拟化平台搭建
多渠道打包
nodeJs--async/await
typescript50 - type specification between cross types and interfaces
【虚拟化生态平台】虚拟化平台esxi挂载USB硬盘
【超详细】手把手教你搭建MongoDB集群搭建
iframe通信
快速入门EasyX图形编程
2015年开源大事件汇总
网络带宽监控,带宽监控工具哪个好
Vant3 - click on the corresponding name name to jump to the next page corresponding to the location of the name of the TAB bar
DataBinding下的RecycleView适配器Adapter基类
ES6高级-迭代器与生成器的用法
共享新能源充电桩充电站建设需要些什么流程及资料?
哎,又跟HR在小群吵了一架!
LeetCode third topic (the Longest Substring Without Repeating Characters) trilogy # 3: two optimization
全面讲解 Handler机制原理解析 (小白必看)
Apache DolphinScheduler新一代分布式工作流任务调度平台实战-中
教你如何定位不合理的SQL?并优化之