code: def get_remote_file_size(self, url):
          
          headers = requests.head(url).headers
          return int(headers['content-length'])
docs: Gets the filesize of a remote file.
  
          :param url:
              The url that has to be checked.
          :type url:
              String
  
          :returns:
              int