weboob.capabilities.geolocip

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

Bases: weboob.capabilities.base.BaseObject

Represents the location of an IP address.
Variables:
  • address – (PostalAddress) Address
  • geo – (GeoCoordinates) Geolocation
  • osmlink – (unicode) Link to OpenStreetMap location page
  • host – (unicode) Hostname
  • tld – (unicode) Top Level Domain
  • isp – (unicode) Internet Service Provider
city
country
lg
lt
region
zipcode
class weboob.capabilities.geolocip.CapGeolocIp

Bases: weboob.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