Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

You supply the URL, pyfav2 will supply the favicon

Project Description


pyfav2 is a simple Python library that helps you get a `favicon`_ for a
supplied URL.

Favicons can be annoying to track down because they’re commonly located
in a handful of different places. pyfav2 removes the annoyance by
handling the details for you – you supply a URL and pyfav2 will give you
the favicon.

Exchange a URL for a favicon on disk

The simplest way to get started is to use the download\_favicon


from pyfav2 import download_favicon

favicon_saved_at = download_favicon('')

You should now see the favicon in your /tmp directory. If you want to
control where the favicon gets written to disk,


from pyfav2 import download_favicon

mkdir /tmp/favicon-downloads

favicon_saved_at = download_favicon('', \

Get the location

If you’d prefer to handle the writing piece, use the get\_favicon\_url


from pyfav2 import get_favicon_url

favicon_url = get_favicon_url('')


The easiest to get pyfav2 is through PIP


pip install pyfav2


pyfav2 is open source and freely avaiable under the `MIT License`_

.. _favicon:
.. _MIT License:

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(8.0 kB) Copy SHA256 Hash SHA256
Source None Dec 10, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers