[英]Parsing HTML with Erlang
I am trying to write my first Erlang application, and I need to parse HTML into some sort of internal format. 我正在尝试编写我的第一个Erlang应用程序,我需要将HTML解析为某种内部格式。 I have had a look at the merl module, but as far as I can see it is only capable of parsing XML.
我看过merl模块,但据我所知,它只能解析XML。
When I supply HTML to merl, it chokes on the non symetric tags. 当我向merl提供HTML时,它会在非symetric标签上窒息。
Which library should I be using for this? 我应该使用哪个库?
Have just found mochiweb_html . 刚刚找到了mochiweb_html 。 Looks like it does what I want...
看起来它做我想要的......
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.