ExsoKamabay / ipwhois

ip information gathering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KAMABAY WHOIS

Installation

#windows
pip install kamabay-ipwhois
#linux & termux
pip3 install kamabay-ipwhois
# OR
$ git clone https://github.com/ExsoKamabay/ipwhois
$ cd ipwhois && pip3 install requests
$ clear && python3 main.py

URL https://pypi.org/project/kamabay-ipwhois/

using command line type ipwhois

using import package from ipwhois import ipwhois

>>> from ipwhois import ipwhois
>>>
>>> ipwhois('0') # zero string default local IP
{
"asn":"AS4818",
"city": "Batu Pahat",
"completed_requests": 2,
"continent": "Asia",
"continent_code": "AS",
"country": "Malaysia",
"country_capital": "Kuala Lumpur",
"country_code": "MY",
"country_flag": "https://cdn.ipwhois.io/flags/my.svg",
"country_neighbours": "BN,TH,ID",
"country_phone": "+60",
"currency": "Malaysian Ringgit",
"currency_code": "MYR",
"currency_plural": "Malaysian ringgits",
"currency_rates": "4.146",
"currency_symbol": "RM",
"ip": "115.164.173.247",
"isp": "DiGi Telecommunications Sdn Bhd., Digi Internet Exchange",
"latitude": "1.849442",
"longitude": "102.9288341",
"org": "DiGi Telecommunications Sdn Bhd., Digi Internet Exchange",
"region": "Johor",
"success": true,
"timezone": "Asia/Kuala_Lumpur",
"timezone_dstOffset": "0",
"timezone_gmt": "GMT +8:00",
"timezone_gmtOffset": "28800",
"timezone_name": "Malaysia Time",
"type": "IPv4",
}

@copyright 25052021

mail lexyong66@gmail.com

About

ip information gathering

License:Apache License 2.0


Languages

Language:Python 100.0%