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.2.tar.gz
(1.8 kB
view hashes)
Built Distribution
Close
Hashes for domainize-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c722635c86e82a79ce08db2fe24a6da0450dbb209ce15c82551aa9746cdd120 |
|
MD5 | 0fe1971acb993009c2e64263911b47dc |
|
BLAKE2b-256 | adacaa4b5c5202720ce6d0d263a7ffd45700a061bca9adac987adc5e78f3b541 |