Favicon

Favicon finder for a given URL. Currently this is a VERY SIMPLE gem that just returns a image for a given URL. At the moment the gem is working, but I recommend you download and store the favicon in a secure place, where this favicon never will be deleted. Actually I don’t know if Google can disable their not-knowed API to return favicons for a given URL.

Installation

Before anything, you must declare this gem on your Gemfile:

gem "favicon"

Afther that, run bundle install to install the new gem and now you’ll be able to use Favicon.

Usage

To use this gem, you just need to require it in the beginning of file and call the only existing method:

require 'favicon'

# Return the favicon image url for the given link.
favicon_image_url = Favicon.find("www.myawesome.url")

And that’s all, well done.

Roadmap

Contributing to favicon

Copyright © 2014 Fernando Paladini. See LICENSE.txt for further details.