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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file domainize-1.2.0.tar.gz.

File metadata

  • Download URL: domainize-1.2.0.tar.gz
  • Upload date:
  • Size: 88.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.19 Linux/5.4.109+

File hashes

Hashes for domainize-1.2.0.tar.gz
Algorithm Hash digest
SHA256 33ab10cc34ff984a7f989f8ea93c4cfa70d00c276ac9beae5cc8d7a8fa6b9dd5
MD5 c1cd3ca5deb834bf03c455775b819b51
BLAKE2b-256 6bf825d98aa9938af4a10d10ed3a2ce4983f439acaf5b34ef03ceeab23d61b66

See more details on using hashes here.

File details

Details for the file domainize-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: domainize-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 87.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.19 Linux/5.4.109+

File hashes

Hashes for domainize-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1cb8ff0ac208670d166bb4f0ca3709f1fabdfb87b49ba920467de15689a2ab93
MD5 278bcf4bc9638cec58d75789a47cf3a6
BLAKE2b-256 4827daf5d2f93f79e354d776bd45068f4cc3a430e7575014074303873a147588

See more details on using hashes here.

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