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.

Source Distribution

guess_logo-0.0.8.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file guess_logo-0.0.8.tar.gz.

File metadata

  • Download URL: guess_logo-0.0.8.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for guess_logo-0.0.8.tar.gz
Algorithm Hash digest
SHA256 433645b01632d7f81ca4c9529faa002edbb4d073589685cf3ed0a0f283af9dbf
MD5 6ca7be8c45cc27f1ce81080ead6dac23
BLAKE2b-256 a19f4b71878bc3a63f33ef1925eafc5409ee855c9538d233508b5dc1894349d2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page