Funkspector.Utils (funkspector v1.0.0)
Common functionality for the scrapers.
Summary
Functions
Given a collection of URLs and a base URL, absolutifies the relative links.
Functions
Link to this function
absolutify(links, base_url)
Given a collection of URLs and a base URL, absolutifies the relative links.
Examples
iex> Funkspector.Utils.absolutify(["javascript:alert(hi)", "/faqs?section=legal", "/about", "http://example.com/faqs"], "http://example.com")
["javascript:alert(hi)", "http://example.com/faqs?section=legal", "http://example.com/about", "http://example.com/faqs"]