Is there any html parser for yaws?

178 Views Asked by At

I am writing an application in erlang on yaws server. I want to extract data from some html page but their seems to be no good way to do this on yaws. There is a method using mochiweb_html but then it is for mochiweb server and not yaws. What should I do? Can mochiweb_html be used in yaws somehow?

2

There are 2 best solutions below

0
Einar Sundgren On BEST ANSWER

You could use the functionality of Mochiweb modules as any ordinary Erlang module. You don't need to be running Mochiweb server to do that.

0
Steve Vinoski On

The yaws_html.erl file in the Yaws source provides basic HTML parsing capabilities.