Skip to main content

Get WHOIS information for a given domain.

Project description

All Whois

Build Status codecov Platform PyPI - Python Version GitHub license

A Python package for retrieving WHOIS information of domains.

Description/Features

  • Python wrapper for Linux "whois" command
  • Get parsed & raw WHOIS data for a given domain
  • Extract data for any TLD.
  • No TLD regex's
  • Date's as datetime objects or strings
  • Caching of results

Requirements

  • Python 3.6+

Support for python 3.6+ only. Works on macos & linux only

Issues

If there is something that is not parsing well, open a issue, and i will look into it. Or if you fixed it, do make a pull request, and i can merge it.

Installation

pip install allwhois

Pre-requisite installation

  • macOS
brew install whois
  • Linux
apt install whois

Usage

import sys
from allwhois import whois
from pprint import pprint

if __name__ == "__main__":
    domain = None
    try:
        domain = sys.argv[1]
    except:
        exit(f"Usage: {sys.argv[0]}  <domain_name>")

    response = whois.query(domain)
    pprint(response)

Authors:

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

allwhois-1.0.0.tar.gz (20.2 kB view hashes)

Uploaded Source

Built Distribution

allwhois-1.0.0-py3-none-any.whl (21.6 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