All Projects → scottwernervt → favicon

scottwernervt / favicon

Licence: MIT License
Find a website's favicon.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to favicon

ngx-favicon
Angular service to dynamically update the favicon on an app
Stars: ✭ 21 (-40%)
Mutual labels:  favicon, favicons
favicon
🖼 An attempt to capture all possible favicons for a web project.
Stars: ✭ 17 (-51.43%)
Mutual labels:  favicon
Faviator
A simple easy favicon generator.
Stars: ✭ 155 (+342.86%)
Mutual labels:  favicon
favloader
Vanilla JavaScript library for loading animation in favicon (favicon loader)
Stars: ✭ 20 (-42.86%)
Mutual labels:  favicon
Gatsby Plugin Favicon
Favicon Gatsby plugin
Stars: ✭ 175 (+400%)
Mutual labels:  favicon
clappr-plugins
Main plugins for the Clappr project
Stars: ✭ 22 (-37.14%)
Mutual labels:  favicon
Webapp Webpack Plugin
[DEPRECATED] use favicons-webpack-plugin instead
Stars: ✭ 127 (+262.86%)
Mutual labels:  favicon
favicon-canvas-loader
Create and display a circular loading <canvas> animation as a webpage favicon.
Stars: ✭ 83 (+137.14%)
Mutual labels:  favicon
goverview
goverview - Get an overview of the list of URLs
Stars: ✭ 93 (+165.71%)
Mutual labels:  favicon
fav
Embrace favicons the modern way 🚀. Inspired by EvilMartian's blogpost.
Stars: ✭ 22 (-37.14%)
Mutual labels:  favicon
Rails Env Favicon
Gem to display the rails environment on the favicon
Stars: ✭ 212 (+505.71%)
Mutual labels:  favicon
Favicon Emoji
🖼 Generate an emoji-favicon in your terminal
Stars: ✭ 247 (+605.71%)
Mutual labels:  favicon
saco
A pre customized, express server for single page web apps that aims to be production ready.
Stars: ✭ 22 (-37.14%)
Mutual labels:  favicon
Icongenie
CLI tool to generate all the icons and splashscreens for your Quasar Apps
Stars: ✭ 174 (+397.14%)
Mutual labels:  favicon
favioli
Emoji Favicons for the web. 👊🤯
Stars: ✭ 55 (+57.14%)
Mutual labels:  favicon
Favicongrabber.com
Grabbing favicons from any domain
Stars: ✭ 152 (+334.29%)
Mutual labels:  favicon
jekyll-favicon
Favicon generator and tag for Jekyll.
Stars: ✭ 17 (-51.43%)
Mutual labels:  favicon
get favicon
Get website's Favicon with PHP
Stars: ✭ 25 (-28.57%)
Mutual labels:  favicon
favicon
💥 Favicon Generator using Node.js and Imagemagick
Stars: ✭ 33 (-5.71%)
Mutual labels:  favicon
bb8
Starter kit for automating tasks in everyday front-end development. 👨🏻‍💻 ⚡️ 🛠 ✨ 🤖
Stars: ✭ 13 (-62.86%)
Mutual labels:  favicons

favicon

https://travis-ci.org/scottwernervt/favicon.svg?branch=master

favicon is a Python library to find a website's favicon.

Installation

pip install favicon

Usage

Get all icons:

>>> import favicon
>>> icons = favicon.get('https://www.python.org/')
Icon(url='https://www.python.org/static/apple-touch-icon-144x144-precomposed.png', width=144, height=144, format='png')
Icon(url='https://www.python.org/static/apple-touch-icon-114x114-precomposed.png', width=114, height=114, format='png')
Icon(url='https://www.python.org/static/apple-touch-icon-72x72-precomposed.png', width=72, height=72, format='png')
Icon(url='https://www.python.org/static/apple-touch-icon-precomposed.png', width=0, height=0, format='png')
Icon(url='https://www.python.org/static/favicon.ico', width=0, height=0, format='ico')

Download largest icon:

import requests
import favicon

icons = favicon.get('https://www.python.org/')
icon = icons[0]

response = requests.get(icon.url, stream=True)
with open('/tmp/python-favicon.{}'.format(icon.format), 'wb') as image:
    for chunk in response.iter_content(1024):
        image.write(chunk)

# /tmp/python-favicon.png

Request library parameters can be passed to favicon.get() as keyword arguments:

import favicon

user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.47 Safari/537.36'
headers = {'User-Agent': user_agent}
favicon.get('https://www.python.org/', headers=headers, timeout=2)

Requirements

Inspiration

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].