[](https://circleci.com/gh/kuniiskywalker/faviconer)
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
When the favicon url is specified in the meta tag
>>> import faviconer
>>> faviconer.get_by_url("https://example.com/test/?aaa=1")
'https://example.com/image/icon.png'
When there is no specific URL specified in the meta tag
>>> import faviconer
>>> faviconer.get_by_url("https://example.com/test/?aaa=1")
'https://example.com/favicon.ico'
Get favicon.ico by url:
>>> import faviconer
>>> faviconer.get_by_url("https://example.com/")
'https://example.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
>>> 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'
Metadata
Release files for faviconer 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| faviconer-0.1.5.tar.gz | 2.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| faviconer-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 kB
Release files / faviconer-0.1.5.tar.gz
| Download URL | faviconer-0.1.5.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1149f0ee5b0b16727ab0cca35156ff5caece1322633f71c2ef518aacca1667ea
|
|
BLAKE2b-256 checksum How to use checksums |
28c268281fcb1e78f6a966b6d84411ff0bded2b0280117578ec37797592645c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.6.3
|
Release files / faviconer-0.1.5-py3-none-any.whl
| Download URL | faviconer-0.1.5-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4bf00e96fcce98482c472cb2388fa940412c8fe392994395396aac69197bc596
|
|
BLAKE2b-256 checksum How to use checksums |
d9164ed5d81e7cd41881fb62848b8edf83452c41b71bd009a849b8763b247e40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.6.3
|