Performs a batch download using wget
* * * * * 1 votos
July 31st, 2006 mysurface Posted in Network, wget | Hits: 18427 |
If I want to download all files in a directory of a website, i have to perform a long wget command, they is what I do at first:
wget -nd -r -l1 --no-parent http://www.foo.com/mp3/
This works fine, but sometimes it gives some silly index.@xx files that wish I do not want. To make your directory clean, 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/
I am going to explain briefly what is the meaning of the options I 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 depth on it.
–no-parent I definately don’t want the parent’s files
ï¼»ä¸æ–‡ç¿»è¯‘ï¼½
Live Chat!









June 13th, 2007 at 4:09 pm
Found this article pretty useful. 5/5.
December 26th, 2008 at 8:14 pm
Thanks 5/5
February 4th, 2009 at 9:46 pm
Very helpfully.
But i didn’t understand the following part -A.mp3 -A.wma.
What is meant with the Letter “A”?
Thanks in advance.
March 18th, 2009 at 7:46 am
A statistic: only 1 out of 10 dumb americans can spell “definitely” correctly.
April 4th, 2009 at 1:23 am
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.
May 24th, 2009 at 1:50 am
Perfect, thanks !