[資工雜筆] wget 用法

因為要幫實驗室做網站,要把大家的圖片都抓下來,最節省時間的方式就是下一個 wget 全部抓完

以下來自 stack overflow

Try this:

wget -nd -r -P /save/location -A jpeg,jpg,bmp,gif,png http://www.domain.com
More information:

-nd prevents the creation of a directory hierarchy (i.e. no directories).

-r enables recursive retrieval. See Recursive Download for more information.

-P sets the directory prefix where all files and directories are saved to.

-A sets a whitelist for retrieving only certain file types. Strings and patterns are accepted, and both can be used in a comma separated list (as seen above). See Types of Files for more information.

command line 下下去之後就可以去泡杯茶等它們載完了。

關於我:

我是沒一村,專長和興趣是程式、主動投資、科技商業模式。可以參考我的書單和比較熱門的文章:

分享:

Leave a Reply