woob.capabilities.geolocip

class woob.capabilities.geolocip.CapGeolocIp

Bases: woob.capabilities.base.Capability

Access information about IP addresses database.

get_location(ipaddr)

Get location of an IP address.

Parameters

ipaddr (str) – IP address

Return type

IpLocation

class woob.capabilities.geolocip.IpLocation(id='', url=NotLoaded, backend=None)

Bases: woob.capabilities.base.BaseObject

Represents the location of an IP address.

Variables
  • address – (PostalAddress) Address

  • geo – (GeoCoordinates) Geolocation

  • osmlink – (str) Link to OpenStreetMap location page

  • host – (str) Hostname

  • tld – (str) Top Level Domain

  • isp – (str) Internet Service Provider

property city
property country
property lg
property lt
property region
property zipcode