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.1.1.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for domainize-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6684ebb921b43a70a713e5ad20180fc217ddcfe2a6d9f0f81230774604f58c0e |
|
MD5 | 5b6bf792e0e787202929189a1c2d7878 |
|
BLAKE2b-256 | fa9f6ad34a2ddeea2fdcda2961fb2f10f8b854650395f60f2bbd5b9a4dc024ba |