Project

ficon

0.0
No commit activity in last 3 years
No release in over 3 years
Ficon finds icons for websites and optionally, the best icon
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 9
~> 12

Runtime

 Project Readme

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::Site.new('https://booko.info/9780748109999').site_icons.first.url
=> "https://booko.info/favicon-196x196.png"

irb(main)> Ficon::Site.new('https://booko.info/9780748109999').page_images.first.url
=> "https://covers.booko.com.au/9780748109999.jpg"

irb(main)> site = Ficon::Site.new('https://booko.info/9780748109999')
=> "Prices for Consider Phlebas by Iain M. Banks"
irb(main):010:0> f.site.description
=> "Prices (including delivery) for Consider Phlebas by Iain M. Banks range from $12.40 at Blackwell's up to $12.99."

Or from the shell:

$ ficon https://booko.info/9780748109999
Site icon: https://booko.info/favicon-196x196.png([196, 196])
Page icon: https://covers.booko.com.au/9780748109999.jpg([1488, 2338])
Page title: Prices for Consider Phlebas by Iain M. Banks
Page description: Prices (including delivery) for Consider Phlebas by Iain M. Banks range from $12.40 at Blackwell's up to $12.99.

Contributing

  1. Fork it ( https://github.com/dkam/ficon/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request