Crawler v0.3.1 Crawler.Parser.Spec behaviour
Spec for defining a parser.
Link to this section Summary
Link to this section Types
Link to this type
element()
Link to this type
page()
page() :: %Crawler.Store.Page{body: String.t, opts: term, processed: term, url: term}
Link to this section Callbacks
Link to this callback
parse({}, link_handler)
parse({:error, term}, link_handler) :: :ok
parse(input, link_handler) :: page