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

github

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 64 github.com

64

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 240 github.com

alpha

Since v0.3.0, clearbot can colorize image (but it is still experimental). You can color the whites (resp. the blacks) by providing the -w flag (resp. the -b flag).

clearbot -t 235 -b "#FC6D26" github.com

color

What's next?

  • Add tests
  • 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.3.0.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

clearbot-0.3.0-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

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