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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ed93f854bea35d6badfb9e499b16fe18f0044cb6f8127f416bfad1bcc5f1628 |
|
MD5 | 934e5b2de0dbe2aa438ee2cc425fafdb |
|
BLAKE2b-256 | 003622cc1fa9bdcee6432310b43feebb685868a336f02d13e826f25f5692a99b |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43abbf27addd87eaf8a6fc0b25209333c04a60e0b4fc01363d926a9dbdbca7e3 |
|
MD5 | 4b0403db9ebbcf578dd64ba5ccb7f52a |
|
BLAKE2b-256 | 90ce7b62f4f83ecd200f169943bb5049964a4e8cc759bd3d9f558250433b3bcd |