华强北电脑城 龙岗电子世界 龙华电脑城  凯尔电脑

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2064|回复: 0

Easily mirror http/ftp sites to your local hard drive

[复制链接]
发表于 2012-3-6 23:21:21 | 显示全部楼层 |阅读模式
WGET for Windows* x! w8 d' u, L, P6 j8 P

8 o9 F+ n: I3 \/ ]( R$ ^Easily mirror http/ftp sites to your local hard drive
, s. ]2 \5 H* c  ^. B" i: M
; C5 p7 f# R1 ~5 Z/ kI searched for some time for a utility that would let me mirror a remote http site to my hard drive with Windows 95. While there are several utilities to do this, I couldn't find any that I liked. Specifically, I wanted to be able to do it from the command line so that I could call it from a script, and I wanted duplicate files on my local drive for subsequent processing by another application. When I found wget for the unix environment, I decided to port it to Windows.
! }! I! A: }8 L: t3 v( a2 b. g3 x5 G& \$ |7 Z8 y9 s
The unix version is available at ftp://sunsite.auc.dk/pub/infosystems/wget/.
1 y5 ~" z- @; _, H# [, Z' y1 l+ y% Y/ o7 X6 O* P5 k
The most recent version I compiled is wgetwin-1_5_3_1-binary.zip. Version 1.5.3 of wget compiles cleanly for windows. To compile it yourself, you will also need to get wget-1.5.3.tar.gz. This 1.5.3.1 includes some additional changes to allow downloading of URLs that have '?' or '*' in their name. This compile was created on July 1, 1999.
" ~1 D& R4 {6 ]+ y) }2 Q
8 Q$ b6 e0 c3 W, }: Z- N# w4 UWGETRC file...
: f9 M3 ~0 K* g7 E- WTo set up a .wgetrc file under windows, you have two choices$ ?" J3 x1 h5 c( Z3 p
/ E; }' k- E$ z7 T; q/ }8 j
Set an environment variable called "WGETRC" which points to the full pathname of your wgetrc file
9 {0 v+ i0 e, Y9 d, c5 @Set an environment variable called "HOME" (if it doesn't already exist) pointing to a directory. Put your wgetrc file in this directory, and call it 'wgetrc'' D, G. x8 K) h$ Z
Heiko Herold has been diligently providing updated wget binaries for the windows platform as changes to the wget source archive are available. You can almost surely find a newer version of wget than I have available here. See http://www.geocities.com/heiko_herold/.7 ~/ r9 ^9 B1 |% a

  X' D1 V5 N* R. VDarko Budor did some work porting 1.4.5 to windows. His page (including a 1.4.5 binary) is at http://diana.zesoi.fer.hr/~dbudor/wget/.' u3 L5 B4 {, H: \7 U) V! ]! W  G
7 T: Q* R8 K7 ^& w0 p- F  b
Lachlan Cranswick has created a compilation of many wget pages, and some good tips for getting wget working well at http://www.dl.ac.uk/CCP/CCP14/mirror/wget.htm . He actually mirrors all the sites there as well, and he's on the European side of the atlantic.- w5 E) R9 a* u% d2 j+ m

/ F1 U- W- J5 t8 p; l+ [1 |0 XPlease don't email me for wget support. Although I've compiled it, I'm only a novice user of it. There is a wget mailing list. It is archived at http://fly.cc.fer.hr/archive/wget. To subscribe to it, send email to wget-subscribe@sunsite.auc.dk with the word subscribe as the subject.
7 ~2 U" {' E, F  l; N% J
) N" A3 _& n% }/ @8 U- V5 cThis page has been accessed& f, ^4 P" G  l
times since May 12, 1997.- x3 d  U1 g1 X! ~' |

$ K, C; L$ D: b0 o4 x+ @Questions / comments / changes? Please contact me at tcharron@interlog.com8 ~- _$ x3 }% }/ n* p

+ u) g. m5 c& Q* O% _9 ?. y2 J+ R- B) M! w
" a. o$ K/ q1 B: d
哈哈哈,解决了一个技术难题,感谢北緯十九度同志
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|华强北 电脑城 龙岗电子世界 龙华电脑城 pc4g.com ( 粤ICP备16039863号 )

GMT+8, 2024-9-19 19:21 , Processed in 0.165094 second(s), 16 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表