Beispiel #1
0
 def save_file_as(self, file_url, new_file_name, destination_folder=None):
     """ Similar to self.download_file(), except that you get to rename the
         file being downloaded to whatever you want. """
     if not destination_folder:
         destination_folder = constants.Files.DOWNLOADS_FOLDER
     page_utils._download_file_to(file_url, destination_folder,
                                  new_file_name)
 def download_file(self, file_url, destination_folder=None):
     """ Downloads the file from the url to the destination folder.
         If no destination folder is specified, the default one is used. """
     if not destination_folder:
         destination_folder = constants.Files.DOWNLOADS_FOLDER
     page_utils._download_file_to(file_url, destination_folder)
     return True
Beispiel #3
0
 def download_file(self, file_url, destination_folder=None):
     """ Downloads the file from the url to the destination folder.
         If no destination folder is specified, the default one is used. """
     if not destination_folder:
         destination_folder = constants.Files.DOWNLOADS_FOLDER
     page_utils._download_file_to(file_url, destination_folder)
     return True
 def save_file_as(self, file_url, new_file_name, destination_folder=None):
     """ Similar to self.download_file(), except that you get to rename the
         file being downloaded to whatever you want. """
     if not destination_folder:
         destination_folder = constants.Files.DOWNLOADS_FOLDER
     page_utils._download_file_to(
         file_url, destination_folder, new_file_name)
     return True