Crawler v1.0.0 Crawler.Scraper.Spec behaviour

Spec for defining a scraper.

Link to this section Summary

Link to this section Types

Link to this type body()
body() :: String.t
Link to this type opts()
opts() :: map
Link to this type page()
page() :: %Crawler.Store.Page{body: body, opts: opts, processed: term, url: url}

Link to this section Callbacks

Link to this callback scrape(page)
scrape(page) :: {:ok, page}