to give a demonstration of the power of the combination of these tools, I will use the example of a user browsing a website with pictures, with each picture showing in a new Tab. We want to download ALL the pictures with format JPG in ALL open tabs, using just a couple of clicks!.
Now first, a little explanation of which is what:
1. Firefox
Everyone probably knows Firefox, it is the program you use to get on the internet and with which you download your files. However, we are going to improve it a bit with the following two pieces of software:
2. Aria2c
aria2 is a utility for downloading files. The supported protocols are HTTP(S), FTP, BitTorrent (DHT, PEX, MSE/PE), and Metalink. It can download a file from multiple sources/protocols and tries to utilize your maximum download bandwidth. It even supports downloading a file from HTTP(S)/FTP and BitTorrent at the same time, while the data downloaded from HTTP(S)/FTP is uploaded to the BitTorrent swarm. Using Metalink’s chunk checksums, aria2 automatically validates chunks of data while downloading a file like BitTorrent.
Source: aria2 project
3. Flashgot
FlashGot is the free Mozilla / Firefox / Flock / Thunderbird extension (compatible with Netscape too), meant to handle single and massive (“all” and “selection”) downloads with several external Download Managers.
Source: FlashGot - Best Firefox Download Manager Integration - what is it? - InformAction
So like I said: “to give a demonstration of the power of this combination, I will use the example of a user browsing a website with pictures, with each picture showing in a new Tab. We want to download ALL the pictures with format JPG in ALL open tabs.”
But first: installation.
1. Install aria2c
(this is using the link from the build repo, for OpenSUSE 11.0)
sudo zypper install http://download.opensuse.org/repositories/network:/utilities/openSUSE_11.0/i586/aria2-0.15.0-3.1.i586.rpm
type ‘Y’ and press Enter/Return
2. Install Flashgot
Open Firefox, surf to https://addons.mozilla.org/en-US/firefox/addon/220 and press the button “Add To Firefox”. Wait a couple of seconds and click “Install Now”
3. Flashgot Configuration
3.1 In Firefox Main Toolbar (at the top of the window) choose “Tools” then “FlashGot” then “More Options”
3.2 Click the “Add” Button
3.3 Type ‘aria2c’
3.4 Navigate to "File System → /usr/bin (wait a while while it loads all the files)
3.5 Search for aria2c and select this (click ‘open’ button)
3.6 Fill in the ‘Command line arguments template’: put what you want (see aria2c help files). In our case, we are going to specify a directory to download our JPEG files in:
-d /home/opensuse11/Pictures/
(obviously use your own folders)
3.7 Go to the ‘downloads tab’ in the “FlashGot Options” window. Check ‘Autostart downloads’ at the top and check ‘Apply file extension to batch downloads too’ at the bottom.
3.8 Now we are going to specify to ONLY download JPG files from the pages: check the radio button ‘File extensions’, type ‘jpg’ in the box (without the quotes) and press ‘Add’. Press the ‘OK’ button at the bottom right of the window.
4. Test it!
4.1 Open a webpage with a number of graphic links (e.g. a page on Flickr.com or your favorite web gallery).
4.2 Open all the pictures you want to see in a new tab (click the thumbnails with ‘Control+Click’ on the thumbnail link)
4.3 Go to any page, Right-Click on an empty space in the webpage and select ‘Flashgot Tabs’
4.4 Now Firefox+FlashGot+Aria2c will download all of your pictures to the directory you specified (in step 3.6)! Try it with other file types too
I hope you found this useful!