如何为python安装解析器库

2024-05-16 12:32:00 发布

您现在位置:Python中文网/ 问答频道 /正文

我得到了:

Couldn't find a tree builder with the features you requested: parser.html. Do you need to install a parser library?

当我试图解析我的页面时。请帮忙,因为我对python还不是很在行。在

^{2}$

Tags: installthetoyoutreeparserhtmlwith
2条回答

解析器应该是“html.parser“而且不是”解析器.html““

详情请参考靓汤documentation。在

使用'html.parser'代替'parser.html'。这可能有用。在

如果没有,请尝试:"html5lib"

相关问题 更多 >