https://github.com/dkam/ficon
Find site icons
https://github.com/dkam/ficon
Last synced: 2 months ago
JSON representation
Find site icons
- Host: GitHub
- URL: https://github.com/dkam/ficon
- Owner: dkam
- License: mit
- Created: 2014-05-06T10:52:01.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2021-07-03T03:00:12.000Z (almost 4 years ago)
- Last Synced: 2025-03-03T19:46:07.724Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this 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