Skip to content

Victoria91/find_site_icon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FindSiteIcon

Finds a large icon for a website given a URL.

Usage

case FindSiteIcon.find_icon(url, opts) do
  {:ok, icon_url} -> # A usable icon_url
  {:error, reason} -> # Reason for why the icon_url could not be fetched.

opts is an optional keyword list.

  • html -> If provided, it does not need to fetch the html for the url, to extract the icons.
  • default_icon_url -> Will be used if no valid icon_url found. Response is always {:ok, icon_url || default_icon_url} in this case.

Installation

The package can be installed by adding find_site_icon to your list of dependencies in mix.exs:

def deps do
  [
    {:find_site_icon, "~> 0.3.8"}
  ]
end

The docs can be found at https://hexdocs.pm/find_site_icon.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 100.0%