Skip to main content

Python package for retrieving WHOIS information of domains.

Project description

whoisdomain

  • A Python package for retrieving WHOIS information of DOMAIN'S ONLY.
  • Python 2.x IS NOT supported.
  • Currently no additional python packages need to be installed.

Notes

  • This package will not support querying ip CIDR ranges or AS information
  • This was a copy of the original DanyCork 'whois'.
    • Significantly refactored in 2023.
    • The output is still compatible with DanyCork 'whois'

Versioning

  • I will start versioning at 1.x.x
    • the second item will be YYYYMMDD,
    • the third item will start from 1 and be only used if more than one update will have to be done in one day.

Versions 1.x.x will keep the output compatible with Danny Cork until 2024-02-03 (February 2024)

Releases

  • Releases are avalable at: Pypi

Pypi releases can be installed with:

  • pip install whoisdomain

Features

Dependencies

  • please install also the command line "whois" of your distribution as this library parses the output of the "whois" cli command of your operating system

Notes for Mac users

  • it has been observed that the default cli whois on Mac is showing each forward step in its output, this makes parsing the result very unreliable.
  • using a brew install whois will give in general better results.

Docker release

Usage example

whoisdomain

ccTLD & TLD support

Most tld's are now autodetected via IANA root db, see the Analizer directory and make suggest.

  • see the file: tld_regexpr
  • for python use: whoisdomain.validTlds()
  • for cli use whoisdomain -S

Support

  • Python 3.x is supported for x >= 9
  • Python 2.x IS NOT supported.

Author's


Updates

  • see Updates for a full history of changes.
  • Only the latest update is mentioned here

1.20230906.1

  • introduce parsing based on functions
  • allow contextual search in splitted data and plain data
  • allow contextual search based on earlier result
  • fix a few tld to return the proper registrant string (not nic handle)

1.20230913.1

  • if you have installed tld (pip install tld) you can enable withPublicSuffix=True to process untill you reach the pseudo tld.
  • the public_suffix info is added if available (and if requested)
  • example case is: ./test2.py -d www.dublin.airport.aero --withPublicSuffix

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

whoisdomain-1.20230913.1.tar.gz (49.4 kB view details)

Uploaded Source

Built Distribution

whoisdomain-1.20230913.1-py3-none-any.whl (60.9 kB view details)

Uploaded Python 3

File details

Details for the file whoisdomain-1.20230913.1.tar.gz.

File metadata

  • Download URL: whoisdomain-1.20230913.1.tar.gz
  • Upload date:
  • Size: 49.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for whoisdomain-1.20230913.1.tar.gz
Algorithm Hash digest
SHA256 d9e6f0ff7258d11c5fa224701508f582259d81cd2f5ebfd08458ec3754fe59c7
MD5 6a4ca1c04634d57fcb12bcae23bcc51d
BLAKE2b-256 312b10fd52ce15acae8295797f9dab9a5fb9c4b8fd81dc6adb548e641b856cee

See more details on using hashes here.

File details

Details for the file whoisdomain-1.20230913.1-py3-none-any.whl.

File metadata

File hashes

Hashes for whoisdomain-1.20230913.1-py3-none-any.whl
Algorithm Hash digest
SHA256 571c63c56eeb9edfdafc987d0e77916b0907c25f35fb855db76b7ea00d1dd9c8
MD5 28233f9014fb6d24d5c96af731947f6e
BLAKE2b-256 019773b684f6086a485aa70e9bcfa41bfba8c9f3cb2da05c6b59732df7223d83

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