woob.capabilities.geolocip

class IpLocation(id='', url=NotLoaded, backend=None)[source]

Bases: BaseObject

Represents the location of an IP address.

Variables:
  • url – (str) url

  • 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 lt
property lg
property city
property region
property zipcode
property country
class CapGeolocIp[source]

Bases: Capability

Access information about IP addresses database.

get_location(ipaddr)[source]

Get location of an IP address.

Parameters:

ipaddr (str) – IP address

Return type:

IpLocation