https://github.com/techdjay/ipwho
whois/ipwo/ipwhois info in sort and crisp details
https://github.com/techdjay/ipwho
Last synced: 3 months ago
JSON representation
whois/ipwo/ipwhois info in sort and crisp details
- Host: GitHub
- URL: https://github.com/techdjay/ipwho
- Owner: techdjay
- License: apache-2.0
- Created: 2023-07-08T15:23:31.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-08T17:07:20.000Z (almost 3 years ago)
- Last Synced: 2026-01-13T16:58:53.595Z (5 months ago)
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
``KAMABAY`` WHOIS updated by Jay
--------------------------
``I just updated the instructions in case you want to use my updated code``
**Installation**
.. code :: python
#windows/Linux
pip install ipwho
#linux & termux if above does not work
pip3 install ipwho
# OR
$ git clone https://github.com/techdjay/ipwho
$ cd ipwhois && pip3 install requests
$ clear && python3 main.py
``URL`` `https://pypi.org/project/ipwho/`_
``Original Author URL`` `https://github.com/ExsoKamabay/ipwhois`_
**using command line type** ``ipwho ip-address``
**Please Note** ``that this has been updated to show only the below instructions, as most people want this output regularly``
.. code :: python
# ipwhois 8.8.8.8
IP: 8.8.8.8
Organization: Google LLC
ISP: Google LLC
**using import package** ``from ipwhois import ipwhois``
.. code :: python
>>> 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 08072023``