Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/whois-api-llc/whois-history-py

Whois History API client library for Python
https://github.com/whois-api-llc/whois-history-py

python whois whois-api whois-history whoisxmlapi

Last synced: 27 days ago
JSON representation

Whois History API client library for Python

Awesome Lists containing this project

README

        

========
Overview
========

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