Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    iplocation 0.1

    Download button

    No screenshots available
    Downloads: 93  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Muhammad M Rahman | More programs
    GPL / FREE
    May 26th, 2012, 20:41 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    iplocation description

    Return city, country, location, business details of given/outgoing IP

    iplocation is a simple Python script to return the location and business details.

    Setup

    pip install iplocation

    Usage

    >>> from iplocation import *
    >>> loc = IPLocation('207.97.227.239') # default takes your outgoing ip
    >>> loc.location
     { u'Area Code': u'415',
     u'City': u'San Francisco',
     u'Country': u'United States ',
     u'Latitude': u'37.7484',
     u'Longitude': u'-122.4156',
     u'Postal Code': u'94110',
     u'State/Region': u'California'}

    >>> loc.get_location('City')
     u'San Francisco'

    >>> loc.business
     { u'Assignment': u'Static IP',
     u'Blacklist': u'',
     u'Decimal': u'3479299055',
     u'Hostname': u'github.com',
     u'IP': u'207.97.227.239',
     u'ISP': u'Rackspace Hosting',
     u'Organization': u'github',
     u'Services': u'None detected',
     u'Type': u'Corporate'}
    >>> loc.get_business('ISP')
     u'Rackspace Hosting'



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    IP location | location details | business details | IP | location | information

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM