Skip to main content

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


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)

Uploaded Source

Built Distribution

domainize-1.2.0-py3-none-any.whl (87.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page