1. 程式人生 > >整站下載工具httrack使用 MAC

整站下載工具httrack使用 MAC

1. 安裝

brew install httrack

2. 執行(以下命令列操作)

#httrack

Welcome to HTTrack Website Copier (Offline Browser) 3.48-21 Copyright (C) 1998-2015 Xavier Roche and other contributors To see the option list, enter a blank line or try httrack –help Enter project name :

//輸入專案名稱,程式會自動生成一個專案名稱的目錄

Base path (return=/root/websites/) :

//本地儲存路徑及目錄,請輸入一個本地的路徑.ps儲存在當前路徑下

Enter URLs (separated by commas or blank spaces) :

//欲抓取的網站地址

Action: (enter) 1 Mirror Web Site(s) 2 Mirror Web Site(s) with Wizard 3 Just Get Files Indicated 4 Mirror ALL links in URLs (Multiple Mirror) 5 Test Links In URLs (Bookmark Test) 0 Quit

//抓取模式選項,選項漢化過來的意思是

行動: (進入)1映象網站(的) 2映象網站(S)與嚮導 3把檔案顯示 4鏡在URL中所有的連結(多鏡) 5在URL連結(書籤測試)的測試 0退出

//這裡我選擇2

Proxy (return=none) :

//是否使用代理,我沒有用代理,直接回車.

You can define wildcards, like: -.gif www..com/.zip -*img_.zip Wildcards (return=none) :

//使用萬用字元下載,我直接回車

You can define additional options, such as recurse level (-r), separed by blank spaces To see the option list, type help Additional options (return=none) :

//抓取選項,輸入help可以查閱詳細引數,這裡我直接回車

—> Wizard command line: httrack https://www.dnspod.cn/ -W -O “/home/RucLinux/DNSPod” -%v Ready to launch the mirror? (Y/n) :

//輸入 Y 回車

WARNING! You are running this program as root! It might be a good idea to use the -%U option to change the userid: Example: -%U smith Mirror launched on Mon, 04 Mar 2013 02:35:02 by HTTrack Website Copier/3.46 libhtsjava.so.2 [XR&CO’2010] mirroring https://www.dnspod.cn/ with the wizard help.. Done. Thanks for using HTTrack!

//完成!