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.1.tar.gz (88.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: domainize-1.2.1.tar.gz
  • Upload date:
  • Size: 88.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.9.23 Linux/5.15.154+

File hashes

Hashes for domainize-1.2.1.tar.gz
Algorithm Hash digest
SHA256 8896be032d819392cb36a35d642b04b2dfb052cbe2c23e383de69e68935681b5
MD5 9338c153a79ac806da3cc1860e326346
BLAKE2b-256 b7276a0930170aeec33349aa512f5ba2f2c5d1b5a966ced0284ca0f73e521fd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: domainize-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 87.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.9.23 Linux/5.15.154+

File hashes

Hashes for domainize-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4b1ddc0244c24d8f6cad8dcb2b46e71cd611bca67fff663a176288f62e2dc14
MD5 5391c13282ba07989fe8e56f36a99d55
BLAKE2b-256 ef5c2a90d1b7c65586c91dd101f7085209eb6ca4d6d82f96b56be9123bec1be1

See more details on using hashes here.

Supported by

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