Crawler v0.3.0 Crawler.Parser.LinkParser.LinkExpander
Expands a link into a full URL.
Link to this section Summary
Functions
Examples
Link to this section Functions
Link to this function
expand(element, opts)
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"}