FindSiteIcon (FindSiteIcon v0.2.1) View Source

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

Link to this section Summary

Functions

Finds the large square icon for a site given its URL. Currently just looks for the largest "apple-touch-item-precomposed" with a fallback to "apple-touch-item".

Link to this section Functions

Link to this function

find_icon(url, html \\ nil)

View Source

Finds the large square icon for a site given its URL. Currently just looks for the largest "apple-touch-item-precomposed" with a fallback to "apple-touch-item".

Examples

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