Jun 292011
 

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.
  • Share This!
     Posted by at 3:11 pm

    Sorry, the comment form is closed at this time.