Library for extracting domains.
Project description
Domainize
Library for extracting domains.
Usage
Domainize does its best to find what we'd typically consider the real domain
of a website. This includes removing subdomains while preserving pseudo-TLD
such as co.uk
.
import domainize
domainize.get_domain("https://github.com/camber-ops/pipper-domainize")
# github.com
domainize.get_domain("blog.camber.io/foobar")
# camber.io
domainize.get_domain("google.co.uk")
# google.co.uk
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
domainize-1.2.0.tar.gz
(88.3 kB
view hashes)
Built Distribution
domainize-1.2.0-py3-none-any.whl
(87.9 kB
view hashes)
Close
Hashes for domainize-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cb8ff0ac208670d166bb4f0ca3709f1fabdfb87b49ba920467de15689a2ab93 |
|
MD5 | 278bcf4bc9638cec58d75789a47cf3a6 |
|
BLAKE2b-256 | 4827daf5d2f93f79e354d776bd45068f4cc3a430e7575014074303873a147588 |