題 如何從命令行繼續HTTrack鏡像會話?


我想使用命令提示符而不是WinHTTrack接口來驅動我的鏡像項目,以便我可以更輕鬆地編寫腳本並安排鏡像會話。

的輸出 httrack --help 給出了一個簡單的命令來繼續中斷的鏡像會話:

example: httrack --continue
continues a mirror in the current folder

當我嘗試 httrack --continue 在我的HTTrack項目文件夾中,我得到的所有輸出都是這樣的:

Example: -%F "<!-- Mirrored from %s by HTTrack Website Copier/3.x [XR&CO'2010], %s -->"
* Option %F needs to be followed by a blank space, and a footer string

為了便於閱讀,新行上的每個參數都是我的第一行 doit.log 文件看起來像這樣:

-qiC1%P0s0b0u1j0%s%u0N0%I0p1DaK0c1T30H0%kf2E1800A25000%c0.1%f#f 
-F "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" 
-%F "" 
-%l "en, en, *" 
http://saa.gov.uk/search.php?SEARCHED=1&SEARCH_TABLE=council_tax&SEARCH_TERM=City+of+Edinburgh&DISPLAY_COUNT=100 
-O1 
"C:\\Users\\Iain\\Projects\\Council Tax Analysis\\Code\\HTTrack\\Council Tax Valuation List" 
-* \
+*search.php?SEARCHED=1* 
-*DISPLAY_MODE=FULL*

參數 %F "" 應告訴HTTrack使用空頁腳。

我使用WinHTTrack接口來創建項目並啟動鏡像會話。我可以使用該接口中斷並繼續鏡像會話。

WinHTTrack無需頁腳即可保存HTML文件。


3
2017-11-24 16:57


起源




答案:


我解決了這個問題 %F 選項來自 doit.log

現在 httrack --continue 確實繼續反映我的項目。

鏡像會話結束後,控制台輸出如下所示:

Mirror launched on Sat, 24 Nov 2012 19:22:10 by HTTrack Website Copier/3.46+htsswf+htsjava [XR&CO'2010]
mirroring http://saa.gov.uk/search.php?SEARCHED=1&SEARCH_TABLE=council_tax&SEARCH_TERM=City+of+Edinburgh&DISPLAY_COUNT=100 -* +*search.php?SEARCHED=1* -*DISPLAY_MODE=FULL* with the wizard help..
Done.
Thanks for using HTTrack!

HTTrack在新文件中添加了一個頁腳:

<!-- Mirrored from saa.gov.uk/search.php?SEARCHED=1&SEARCH_TABLE=council_tax&SEARCH_TERM=City+of+Edinburgh%2C+EDINBURGH&DISPLAY_COUNT=100&PAGE=0&ASSESSOR_ID=&TYPE_FLAG=C&ORDER_BY=SET+DESC&ORIGINAL_SEARCH_TERM=City+of+Edinburgh&DRILL_SEARCH_TERM=CLAREMONT+GARDENS%2C+EDINBURGH&DD_TOWN=EDINBURGH&DD_STREET=CLAREMONT+GARDENS by HTTrack Website Copier/3.x [XR&CO'2010], Sat, 24 Nov 2012 19:52:28 GMT -->

我真的不想要頁腳,但至少我可以從命令提示符控制HTTrack。


3
2017-11-24 20:19