2017-10-04 114 views
0

我有一個文件urls.txt。其中有多個網址。 我正在使用wget來下載這樣的網頁內容: wget -i urls.txt。 Web內容將保存在每個鏈接的不同文件中。我想這一切都保存在一個txt文件使用wget下載多個網址。

回答

0

這將存儲請求細節messages.txt和所有下載內容到html.txt

$ wget -a messages.txt -i urls.txt -O html.txt 

wget --help

Logging and input file: 
    -a, --append-output=FILE  append messages to FILE 

Download: 
    -O, --output-document=FILE  write documents to FILE 

測試GNU Wget 1.19.1構建於darwin16.6.0上。