faviconPlease {faviconPlease}R Documentation

Find the URL to a website's favicon

Description

faviconPlease() first applies the favicon functions specified in the argument functions. If these do not find a favicon URL, then it applies the fallback function specified by the argument fallback.

Usage

faviconPlease(
  links,
  functions = list(faviconLink, faviconIco),
  fallback = faviconDuckDuckGo
)

Arguments

links

Character vector of URLs

functions

List of functions for finding URL to a website's favicon. They are tried in order until a URL is found. If no URL is found, the fallback is applied.

fallback

Either a function or a single character vector. It is applied when none of the supplied functions are able to find a favicon.

Value

Character vector with URLs to the favicons for the websites specified in the input argument links. The URLs are generated from one of the favicon functions specified in the input argument functions. If a favicon URL cannot be identified, then the returned URL is generated by the input argument fallback.

See Also

faviconLink, faviconIco, faviconDuckDuckGo, faviconGoogle


[Package faviconPlease version 0.1.3 Index]