Crawler v1.1.1 Crawler.Parser.LinkParser.LinkExpander

Expands a link into a full URL.

Link to this section Summary

Functions

Expands a link into a full URL.

Link to this section Functions

Link to this function

expand(element, opts)

Expands a link into a full URL.

Examples

iex> LinkExpander.expand({"href", "http://hello.world"}, %{})
{"href", "http://hello.world"}

iex> LinkExpander.expand({"href", "page"}, %{referrer_url: "http://hello.world"})
{"link", "page", "href", "http://hello.world/page"}