ip information gathering. originaly created by kamabay modifued the code to get only some specific dat
Project description
I just updated the instructions in case you want to use my updated code
Installation
#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
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
# ipwhois 8.8.8.8
IP: 8.8.8.8
Organization: Google LLC
ISP: Google LLC
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",
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ipwho-0.1.1.tar.gz
(6.8 kB
view hashes)
Built Distribution
ipwho-0.1.1-py3-none-any.whl
(7.2 kB
view hashes)