Batch download using wget

To get a clean download, if you knows the file format you want, you can do this:

wget -nd -r -l1 --no-parent -A.mp3 -A.wma http://www.foo.com/mp3/

To explain briefly the options speficied;

  • -nd no directory, by default wget creates a dir
  • -r recursively download
  • -l1 (L one) level 1, download only of that particular folder, don’t go in depth on it.
  • –no-parent I definately don’t want the parent’s files
  • -A The -A option allows you to specify which types of accepted files should be downloaded. In this case, all files with the .wma and .mp3 file extension will be downloaded.
  • g33kadmin

    I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....