View Source
Crawler.Parser.Spec behaviour
(Crawler v1.5.0)
Spec for defining a parser.
@type page() :: %Crawler.Store.Page{
body: body(),
opts: opts(),
processed: term(),
url: url()
}
@callback parse(page()) :: {:ok, page()}
@callback parse({:error, term()}) :: :ok