Image Downloader v.2 – Download Linked Images Quickly and Easily From a Webpage
- October 4th, 2010
- Posted in CrunchBang Linux . Debian . Linux . NCLUG . Open Source / FOSS . Ubuntu, Kubuntu, Xubuntu, Fluxbuntu, Nubuntu, Geubuntu . Useful Software . Wallpaper Images
- Write comment
Version 1 provided various options: (1) print a list of hyperlinks contained within a web page and dump them into a text file; (2) download images that a web page is linking to; (3) prompt the user to create a new directory (which is where it would save the files to) for either of the two previously mentioned options so that the user could better control where files were being saved to if running through the program numerous times before exiting.
Some folks, myself included, would like to bypass the majority of the choices and just download images to the current working directory. The idea being that you navigate to where you want to go in your directory tree, create a new directory if desired, cd to that directory, and execute imageDownloader from there. Once the images have finished downloading, the program exits and the user is returned to a command prompt. Simple. Easy. Fast.
If you use figlet, you can uncomment lines 19 and 57 and either delete or comment out lines 20 and 58 to give you a finishing output that looks like this:
As stated in the previous post, you’ll want to make sure that the file is executable, and you may also wish to make this globally executable by copying an executable version of the file to your /usr/bin/ directory; this will allow you to call the program from any directory within your file tree.