Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glaszig/bildchen
Find the most likely favicon for a given URL
https://github.com/glaszig/bildchen
Last synced: 13 days ago
JSON representation
Find the most likely favicon for a given URL
- Host: GitHub
- URL: https://github.com/glaszig/bildchen
- Owner: glaszig
- License: mit
- Created: 2013-12-17T16:30:56.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2024-08-28T04:13:20.000Z (5 months ago)
- Last Synced: 2024-12-23T13:50:34.658Z (about 1 month ago)
- Language: Ruby
- Size: 33.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Bildchen
[![Build Status](https://github.com/glaszig/bildchen/actions/workflows/test.yml/badge.svg)](https://github.com/glaszig/bildchen/actions)
Ruby library which tries to find the most likely favicon for a given URL.
It does so via HTTP HEAD requests and traversing up the URI path.## Installation
Add this line to your application's Gemfile:
gem 'bildchen', github: 'glaszig/bildchen'
And then execute:
$ bundle
## Usage
Cached:
Bildchen['http://www.example.com/path/to/somewhere']
Uncached:
bildchen = Bildchen::Resolver.new 'http://www.example.com/path/to/somewhere'
bildchen.resolve### Configuration
HTTP timeouts default to 5 seconds and can be tuned as follows
Bildchen.timeout = 10
## Contributing
1. Fork it
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 new Pull Request