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:
>>> import faviconer
>>> faviconer.get("http://google.com/")
'http://google.com/favicon.ico'
Get favicon.ico by url:
>>> import faviconer
>>> get_by_url("http://google.com/")
'http://google.com/favicon.ico'
Get favicon.ico by html:
>>> 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.0.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for faviconer-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | efa2c570b32811d3767a59b16eb5da20f4485f3f386aa38cd691a151850a2bf2 |
|
MD5 | 2cfaad7d0b341948f78ee1d7572df157 |
|
BLAKE2b-256 | 0d262e0fd2f64a2da514eec04e742ae3b40f98bb07137225c7051e6c6dc7d5fe |