Skip to main content

IP2WHOIS Python SDK to help user to check WHOIS information for a particular domain.

Project description

IP2WHOIS Python SDK

This Python module enables user to easily implement the checking of WHOIS information for a particular domain into their solution using the API from https://www.ip2whois.com. It is a WHOIS lookup api that helps users to obtain domain information, WHOIS record, by using a domain name. The WHOIS API returns a comprehensive WHOIS data such as creation date, updated date, expiration date, domain age, the contact information of the registrant, mailing address, phone number, email address, nameservers the domain is using and much more. IP2WHOIS supports the query for 1113 TLDs and 634 ccTLDs.

This module requires API key to function. You may sign up for a free API key at https://www.ip2whois.com/register.

Installation

To install this module type the following:

pip install IP2WHOIS

Usage Example

Lookup Domain Information

Object Properties

Property Name Property Type Description
domain string Domain name.
import ip2whois

# Configures IP2WHOIS API key
ip2whois_init = ip2whois.Api('YOUR_API_KEY')

# Lookup domain information
parameter = {'domain': 'example.com'}
results = ip2whois_init.lookup(parameter)
print(results)

Convert Normal Text to Punycode

Object Properties

Property Name Property Type Description
domain string Domain name.
import ip2whois

# Configures IP2WHOIS API key
ip2whois_init = ip2whois.Api('YOUR_API_KEY')


# Convert normal text to punycode
parameter = {'domain': 'xn--tst-qla.de'}
result = ip2whois_init.getPunycode(parameter)
print(result)

Convert Punycode to Normal Text

Object Properties

Property Name Property Type Description
domain string Domain name.
import ip2whois

# Configures IP2WHOIS API key
ip2whois_init = ip2whois.Api('YOUR_API_KEY')


# Convert punycode to normal text
parameter = {'domain': 'täst.de'}
result = ip2whois_init.getNormalText(parameter)
print(result)

LICENCE

See the LICENSE file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

IP2WHOIS-1.0.0-py2.py3-none-any.whl (3.9 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