View Source Crawler.Parser.LinkParser.LinkExpander (Crawler v1.5.0)

Expands a link into a full URL.

Summary

Functions

Expands a link into a full URL.

Functions

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"}