Furlex v0.1.0 Furlex.Parser behaviour View Source

Link to this section Summary

Functions

Extracts the given tags from the given raw html according to the given match function

Extracts a canonical url from the given raw HTML

Link to this section Functions

Link to this function extract(tags, html, match) View Source

Extracts the given tags from the given raw html according to the given match function

Example

html = <html><head><meta name="foobar" content="foobaz" /></head></html>

Parser.extract [“foobar”], html, &(“meta[name=&1]”) => %{“foobar” => “foobaz”}

Extracts a canonical url from the given raw HTML

Link to this section Callbacks

Link to this callback parse(arg0) View Source
parse(String.t) :: {:ok, Map.t} | {:error, Atom.t}