faviconer is easy for get favicon package
Project description
What is this?
This is a package to get a nice favicon from a website
Installation
pip install faviconer
Usage
Get favicon.ico:
Get /favicon.ico if there is no explicit favicon url specified in the meta tag of the target site
>>> import faviconer
>>> faviconer.get("http://google.com/")
'http://google.com/favicon.ico'
Get favicon.ico by url:
Get /favicon.ico
>>> import faviconer
>>> get_by_url("http://google.com/")
'http://google.com/favicon.ico'
Get favicon.ico by html:
Analyze the target site html and get favicon.ico if favicon url is specified in meta tag
>>> import faviconer
>>> get_by_html('<html><head><link rel="shortcut icon" href="https://cdn.sstatic.net/Sites/stackoverflow/img/favicon.ico"></head><body></body</html>')
'https://cdn.sstatic.net/Sites/stackoverflow/img/favicon.ico'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
faviconer-0.1.1.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for faviconer-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81bfe59f45acb5771803d0795e806329569de5677e3365121852a547700ce19d |
|
MD5 | 2b4582b1de459ac0622dc9b2d0fa9c63 |
|
BLAKE2b-256 | 10cff8c677ad3ed258f581a11b595b89d13dd50c3f6353ba8341c3594b6445b9 |