UrlFetcher v0.1.0 UrlFetcher View Source
Fetches asset and link URLs from a given page URL.
Link to this section Summary
Functions
Fetch image and link tags URLs.
Link to this section Functions
Specs
fetch(UrlFetcher.Http.Client.url(), [{:key, any()}]) :: {:ok, UrlFetcher.SiteData.t()} | {:error, term()}
Fetch image and link tags URLs.
Available options:
- http_client: HTTP Client to be used. Must comply with
UrlFetcher.Http.Client
behaviour. Defaults toUrlFetcher.Http.Adapter.Poison
. - unique: boolean. If set, removes duplicates from results. Defaults to
true
. - normalize: transforms all urls to absolute if set to :absolute, or leaves them as they are with :original. Defaults to
original
.
## Parameters
- url: String that represents the URL to parse
- opts: Keyword list of options