program implemented is used for downloading images – 1436478

The program implemented is used for downloading images from a given URL. There are several options presented to the user during the execution of the program. Once an options is selected from the console , a function is executed that prompts the user for parameters that are used to control the download of the image.

Options vary depending on the number and the download of a specific image. The list of options available include:

  • Download of a specific thumbnail – This option prompts the user for the last four digits of a thumbnail. A specific thumbnail is then downloaded using the unique digits.
  • Download images in range – This option requires the range for the images to be download provided. The  start range is the lowest digit and end range , the highest digits from which the images are downloaded. The program iterates and downloads all images in the given range from the start to the end.
  • Download a specific number of images – User is prompted for a specific number. This options generates and downloads a specific random number of images corresponding the number given by the user.
  • Download all thumbnails – No parameters are required for this option. During execution, all the images contained in the URL are downloaded.
  • Clean up all file – This option is used to provide a clean up procedure to delete all the images and the files that are attached in the image folder.
  • Exit – used to exit from the main execution of the program.

All the images using the options listed are downloaded and saved in images folder in the current working directory. During clean , this folder is usually deleted.

The choice of selecting the approach is to provide a clear and polymorphic procedure that can be used during execution and use of the program. Incremental and iterative paradigms are used during the development of the program that provides a layer of abstraction used in implementation.

The bash code is executed on the command-line using an interpreter and can be run on the major operating systems.

The program major priority is the download from the given URL. User inputs is concatenated with the main download URL to provide the specific path that can be used to download a specific image.

The main challenges encountered during the development process include a synchronization procedure that can be used to share user input from one menu to another. This problem is solved through the adoption of functional approach that is used to execute each of the options dependently.

The permissions for saving images into the current directory vary depending on the operating system. Different operating system require permission to perform download and save to directory.