Skip to main content

Clearbit Logo API client

Project description

clearbot

Clearbit Logo API client.

clearbot fetches the logo of company (png file) based on their domain name.

Install

The script in available through a python package.

pip install clearbot

Get started

You can run directly the script on a domain.

clearbot github.com

You can pass several domains as well.

clearbot github.com gitlab.com

A file can also be used as input (one domain by line).

clearbot -f ./domains.txt

By default it will output /tmp/<DOMAIN>.png. You can change the destination directory with the -d option.

clearbot -d . github.com

By default it outputs 512px png file (i.e. the greatest side has 512px). You can change it with the -s option.

clearbot -s 128 github.com

Sometimes we may want to remove the white background (by using transparency: alpha = 0). For this purpose, you can use the -t options that thresholds the whites (it must be between 0 and 255 as it is applied on a grayscale version of the image).

clearbot -t 250 github.com

What's next?

  • Add tests
  • Colorize image
  • Print result to the terminal

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

clearbot-0.2.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

clearbot-0.2.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file clearbot-0.2.0.tar.gz.

File metadata

  • Download URL: clearbot-0.2.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.9 Linux/6.1.7-100.fc36.x86_64

File hashes

Hashes for clearbot-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7ed93f854bea35d6badfb9e499b16fe18f0044cb6f8127f416bfad1bcc5f1628
MD5 934e5b2de0dbe2aa438ee2cc425fafdb
BLAKE2b-256 003622cc1fa9bdcee6432310b43feebb685868a336f02d13e826f25f5692a99b

See more details on using hashes here.

File details

Details for the file clearbot-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: clearbot-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.9 Linux/6.1.7-100.fc36.x86_64

File hashes

Hashes for clearbot-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 43abbf27addd87eaf8a6fc0b25209333c04a60e0b4fc01363d926a9dbdbca7e3
MD5 4b0403db9ebbcf578dd64ba5ccb7f52a
BLAKE2b-256 90ce7b62f4f83ecd200f169943bb5049964a4e8cc759bd3d9f558250433b3bcd

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