Skip to content

dkam/ficon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Find site icons

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages