Skip to main content

ip information gathering. originally created by kamabay modified the code to get only some specific data.

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


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.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipwho-0.1.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file ipwho-0.1.2.tar.gz.

File metadata

  • Download URL: ipwho-0.1.2.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.14

File hashes

Hashes for ipwho-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bb2a62a2d4f940676f2dd7087665c83517005908f69ad92db3a498dd6bb6a953
MD5 00300b73817915440034f6966799acd7
BLAKE2b-256 c562f9a38c5014615e3ce873134155808c757ea85777e7e84f00589c33f76ce1

See more details on using hashes here.

File details

Details for the file ipwho-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ipwho-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.14

File hashes

Hashes for ipwho-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fdb9d11f22a10d2a087df24c17d238720313054b78f096cf4a94911f58e7ac9e
MD5 649c837a88d099dd3af243ccab5aae77
BLAKE2b-256 b6bf7aa6e9335ed10c609e5b29cd93116a53ed41d6b0a68267582fbc5f9c655b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page