funkspector v0.1.4 Funkspector.Utils

Common functionality for the scrapers.

Summary

Functions

Given a collection of URLs and a base URL, absolutifies the relative links

Functions

absolutify(links, root_url)

Given a collection of URLs and a base URL, absolutifies the relative links.

Examples

iex> Funkspector.Utils.absolutify ["/faqs?section=legal", "/about"], "http://example.com"
["http://example.com/faqs?section=legal", "http://example.com/about"]