How to download multiple URLs using wget using a single command? How to download multiple URLs using wget using a single command? windows windows

How to download multiple URLs using wget using a single command?


From man wget:

2 Invoking
By default, Wget is very simple to invoke. The basic syntax is:
wget [option]... [URL]...

So, just use multiple URLs:

wget URL1 URL2

Or using the links from comments:

$ cat list.txthttp://www.vodafone.de/privat/tarife/red-smartphone-tarife.htmlhttp://www.verizonwireless.com/smartphones-2.shtmlhttp://www.att.com/shop/wireless/devices/smartphones.html

and your command line:

wget -E -H -k -K -p -e robots=off -P /Downloads/ -i ./list.txt

works as expected.


First create a text file with the URLs that you need to download.eg: download.txt

download.txt will as below:

http://www.google.comhttp://www.yahoo.com

then use the command wget -i download.txt to download the files. You can add many URLs to the text file.


pedantic version:

for x in {'url1','url2'}; do wget $x; done

the advantage of it you can treat is as a single wget url command