guess_logo
猜测网址的logo链接 Detection of logo url from any website.
How to install.
pip3 install guess_logo
How to use.
from guess_logo import GuessLogo
url = 'http://www.txdkj.com/'
logos = GuessLogo.guess(url)
print(logos)
# 调整logo大小
from guess_logo import Logo
height = 256
width = 512
source = 'demo/ifengLogo.png'
target = 'demo/ifengLogo_{}_{}.png'.format(width, height)
Logo.resize(source, target, width, height, bgcolor='transparent')
# 替换白色为透明
from guess_logo import ColorLogo
source = 'demo/logo.jpeg'
target = 'demo/logo.transparent.png'
ColorLogo.replace(source, target)
Release files for guess-logo 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| guess_logo-0.0.8.tar.gz | 3.4 kB | Details |
Release files / guess_logo-0.0.8.tar.gz
| Download URL | guess_logo-0.0.8.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
433645b01632d7f81ca4c9529faa002edbb4d073589685cf3ed0a0f283af9dbf
|
|
BLAKE2b-256 checksum How to use checksums |
a19f4b71878bc3a63f33ef1925eafc5409ee855c9538d233508b5dc1894349d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
|