FindSiteIcon.find_icon

You're seeing just the function find_icon, go back to FindSiteIcon module for more information.
Link to this function

find_icon(url, opts \\ [])

View Source

Specs

find_icon(binary(), keyword(binary())) :: {:error, <<_::216>>} | {:ok, any()}

Finds the large square icon for a site given its URL.

Can be provided with additional options in the second argument:

  • :html -> can pass an already fetched html. Will look for icon link tags within the provided html if present.
  • :default_icon_url -> is used if no icon_url could be fetched.

Examples

iex> FindSiteIcon.find_icon("https://nytimes.com")
{:ok, "https://nytimes.com/vi-assets/static-assets/ios-ipad-144x144-28865b72953380a40aa43318108876cb.png"}