开发者

Is there a native HTML parsing module for Python 3.2?

开发者 https://www.devze.com 2023-03-03 03:23 出处:网络
I am trying to parse some html. I would like something like sgmllib but it is deprecated in python 3.2.

I am trying to parse some html. I would like something like sgmllib but it is deprecated in python 3.2.

Is there an alternate module that I can use?

Thanks开发者_JAVA技巧.


Built-in HTMLParser module: http://docs.python.org/py3k/library/html.parser.html

Not native but worth to mention; BeautifulSoup: http://www.crummy.com/software/BeautifulSoup/


Not sure what you mean by native, but I'm a big fan of lxml.

0

精彩评论

暂无评论...
验证码 换一张
取 消