Skip to main content

Detect logo url for any website.

Project description

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)

Project details


Download files

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

Files for guess-logo, version 0.0.8
Filename, size File type Python version Upload date Hashes
Filename, size guess_logo-0.0.8.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page