Skip to content

Latest commit

 

History

History
38 lines (20 loc) · 1.01 KB

README.md

File metadata and controls

38 lines (20 loc) · 1.01 KB

IP WHOIS Python Module

This is a Python module for performing WHOIS lookups on IP addresses. It can be used to obtain information about the owner of an IP address, including the organization name, contact details, and more.

Requirements

This module requires Python 3.x. There are no additional external dependencies.

Installation

To use this module, simply copy the ip_whois.py file into your project directory. You can import it in your Python script as follows:

import ip_whois

Usage

To use this module, call the lookup function with the IP address as the argument. The function will return the results of the WHOIS lookup as a JSON object. You can print it out or use it as needed.

import ip_whois

ip_address = '192.0.2.0'
result = ip_whois.lookup(ip_address)
print(result)

The module will automatically perform a WHOIS lookup on the given IP address and parse the response to return a JSON object containing the information.

License

GNU General Public License v3.0