Skip to main content

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

Metadata

Release files for clearbot 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clearbot 0.3.0
File Size Uploaded Provenance Actions
clearbot-0.3.0.tar.gz 4.6 kB Without provenance Details for clearbot-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for clearbot 0.3.0
File Interpreter ABI Platform Actions
clearbot-0.3.0-py3-none-any.whl Python 3 none any Details for clearbot-0.3.0-py3-none-any.whl

Total release size: 9.5 kB

Release files / clearbot-0.3.0.tar.gz

Download URL clearbot-0.3.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dc12bbc781aa890aac41f7676a823cf525e479e115f2eb1795b9ddfe1f884548
BLAKE2b-256 checksum
How to use checksums
b1ac0c3fe3e55b520954beda5e1c67bfb965c33b30bcea1f2660155efb740e75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.9 Linux/6.1.11-100.fc36.x86_64

Release files / clearbot-0.3.0-py3-none-any.whl

Download URL clearbot-0.3.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99f02a517892283acafda1b80695f0ee94a68e06a1912c46e641bdd73024a086
BLAKE2b-256 checksum
How to use checksums
0b54b7b63c93f5f62af65e47e3eebcee634e66cc6ff2ff27aad0ff4a5b8032dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.9 Linux/6.1.11-100.fc36.x86_64

Security for clearbot 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page