Ficon
Find all the icons for a given URL. Favicons, og:image etc and return them in as a list.
Installation
Add this line to your application's Gemfile:
gem 'ficon'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ficon
Usage
irb(main)> Ficon.from_uri "https://facebook.com"
=> ["https://www.facebook.com/images/fb_icon_325x325.png", "https://fbstatic-a.akamaihd.net/rsrc.php/yV/r/hzMapiNYYpW.ico", "https://www.facebook.com/favicon.ico"]
Or form the shell:
$ ficon https://facebook.com
https://www.facebook.com/images/fb_icon_325x325.png
https://fbstatic-a.akamaihd.net/rsrc.php/yV/r/hzMapiNYYpW.ico
https://www.facebook.com/favicon.ico
Contributing
- Fork it ( https://github.com/dkam/ficon/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request