Rana
Rana

Reputation: 51

Is there any html parser for yaws?

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?

Upvotes: 1

Views: 176

Answers (2)

Steve Vinoski
Steve Vinoski

Reputation: 20004

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

Upvotes: 2

Einar Sundgren
Einar Sundgren

Reputation: 4423

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.

Upvotes: 1

Related Questions