code: def update(self):
          
          response = requests.get(self.update_url, timeout=timeout)
          match = ip_pattern.search(response.content)
  
          # response must contain an ip address, or else we can't parse it
          if not match:
              raise ApiError("Couldn't parse the server's response",
                      response.content)
  
          self.ip = match.group(0)
docs: Updates remote DNS record by requesting its special endpoint URL