使用wget批量下載網站目錄檔案

來源:互聯網
上載者:User

標籤:批量下載檔案   wget   

最近在下載一個網站的檔案,目錄太多,檔案太多一個一個下載太麻煩了,隨即想起曾經用過的一個wget的工具,今天正好給大家分享一下,我平常使用wget最常使用的命令是

wget –r  http://website/webdir

這樣可以下載整個目錄下的所有檔案,並且裡面的目錄也自動排文建立好了

650) this.width=650;" title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;" border="0" alt="image" src="http://img1.51cto.com/attachment/201409/6/2011872_1409984671jOpe.png" height="141" />

如果網頁需要使用者名稱密碼登陸則需要加參數

wget –r –-http-user=username --http-passwd=userpassword http://website/webdir

 

詳細的參數介紹參見百度百科http://baike.baidu.com/view/1312507.htm?fr=aladdin

本文出自 “孟紀超的技術部落格” 部落格,請務必保留此出處http://superdream.blog.51cto.com/2011872/1549634

使用wget批量下載網站目錄檔案

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.