scrape v2.0.0 Scrape.Link

Common helpers for normalizing and modifying URLs.

Summary

Functions

Takes the base path from a fully qualified absolute URL and expands the path of an unknown URL with it

Functions

expand(target, base)

Takes the base path from a fully qualified absolute URL and expands the path of an unknown URL with it.

iex> Scrape.Link.expand(“/some/path”, “//example.com/ab/c”) “http://example.com/some/path”