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
-
-
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
) Addressgeo – (
GeoCoordinates
) Geolocationosmlink – (
str
) Link to OpenStreetMap location pagehost – (
str
) Hostnametld – (
str
) Top Level Domainisp – (
str
) Internet Service Provider
-
property
city
¶
-
property
country
¶
-
property
lg
¶
-
property
lt
¶
-
property
region
¶
-
property
zipcode
¶