code: def cmd_ip_geolocation(ip_address, verbose):
      
      if verbose:
          logging.basicConfig(level=logging.INFO, format='%(message)s')
          print("Looking up %s..." % ip_address, file=sys.stderr)
  
      results = geo_location(ip_address)
  
      if results:
          print(json.dumps(results, indent=4))
      else:
          print("[X] %s is not valid IPv4 address" % ip_address)
  
      return True
docs: Get the geolocation of an IP adddress from https://ipapi.co/.
  
      Example:
  
      \b
      $ habu.ip.geolocation 8.8.8.8
      {
          "ip": "8.8.8.8",
          "city": "Mountain View",
          ...
          "asn": "AS15169",
          "org": "Google LLC"
      }