Skip to main content

Python client library for Whois History API.

Project description

The client library for Whois History API in Python language.

The minimum Python version is 3.6.

Installation

pip install whois-history

Examples

Full API documentation available here

Create a new client

from whoishistory import ApiClient

client = ApiClient('Your API key')

Make basic requests

# Check how many records available. It doesn't deduct credits.
print(client.preview('whoisxmlapi.com'))

# Get actual list of records.
resp = client.purchase('whoisxmlapi.com')

for r in resp:
    print(r.registrar_name)

Additional options

You can specify search options for these methods.

import datetime

d = datetime.date(2017, 1, 1)

print(client.preview('whoisxmlapi.com'),
      sinceDate=d,
      createdDateFrom=d,
      createdDateTo=d,
      updatedDateFrom=d,
      updatedDateTo=d,
      expiredDateFrom=d,
      expiredDateTo=d,
)

Changelog

1.0.0 (2020-05-01)

  • First release

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

whois-history-1.0.3.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

whois_history-1.0.3-py2.py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 2 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