Comments (2)
bs4解析网页时报错:bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?
原因:不可以使用 BeautifulSoup(html,'html_parser')
解决办法:
1.安装 pip install lxml
2.将BeautifulSoup(html,'html_parser') 改为BeautifulSoup(html,'lxml')
from chaoxing.
pip install 执行过吗?BeautifulSoup(html,'html_parser')这行代码在这个仓库中没有出现过啊
from chaoxing.
Related Issues (20)
- 学校/机构账号登录功能
- TypeError: cannot unpack non-iterable NoneType object HOT 1
- [Feature Request] 使用noneprompt优化用户体验 HOT 3
- [提问]倍速怎么设置
- [BUG反馈] HOT 3
- [BUG反馈] 非预期的JSON格式 HOT 2
- 出现JSON.DECODER错误的朋友请看这条 HOT 3
- [BUG反馈] HOT 1
- 请问课程id在哪查询 HOT 1
- [BUG反馈] HOT 2
- [BUG反馈]运行main.py出错 HOT 3
- [BUG反馈]二级目录课程不显示 HOT 1
- [BUG反馈]requests HOT 2
- 大佬,能写一个刷智慧职教慕课的程序吗?
- [BUG反馈]出现无权访问错误 HOT 1
- [BUG反馈]出现异常章节,代码不可刷,网页端可看 HOT 6
- [BUG反馈]章节任务点读取成功后程序直接退出 HOT 5
- [BUG反馈]
- [BUG反馈]无法获取课程列表
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chaoxing.