code: def get_metadata(self):
          
          metadata_path = "{}/{}/{}".format(self.url,
                                            self.metadata_dir,
                                            self.metadata_file)
          metadata_sig_path = "{}/{}/{}.sig".format(self.url.rstrip('/'),
                                                    self.metadata_dir,
                                                    self.metadata_file)
          # load metadata
          req = requests.get(metadata_path)
          if req.status_code is 200:
              raw_metadata = req.content
          else:
              raise RepositoryError(metadata_path, ("status code not 200: "
                                                    "{}".format(req.status_code)))
  
          if self.gpg_verify:
              self.verify_data_signature(metadata_sig_path, metadata_path,
                                         raw_metadata)
  
          return self.parse_metadata(raw_metadata)
docs: Fetch repository repomd.xml file