适用于Python 3.4的HTMLParser [英] HTMLParser for Python 3.4
本文介绍了适用于Python 3.4的HTMLParser的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些使用HTMLParser用Python(2.7)编写的代码. 我目前正在使用Pyhton 3.4.
I have some code written in Python(2.7) which uses HTMLParser. I am using Pyhton 3.4 currently.
我找不到HTMLParse下载模块. 我搜了很多.我找不到它.
I can not find HTMLParse download module. I have searched a lot. I cannot find it.
我担心它是否存在.如果存在,请共享链接. 如果没有,我该怎么办?
I am concerned if it even exists. If it exists, please share the link. If not, what should I do?
推荐答案
您不需要为Python 3安装html解析器.它已预先安装.只需使用:
You don't need install html parser for Python 3. It's pre installed. Just use:
import html.parser
这篇关于适用于Python 3.4的HTMLParser的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文