WGET for Windows
. n+ I: Q! ?8 U/ P8 d8 @3 Z) Y1 N5 Z& v) p7 b& x9 a
Easily mirror http/ftp sites to your local hard drive% [/ `/ X/ \+ d$ r' C
" ~2 q+ Q; q+ c; HI 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.
7 t+ L6 B! b; P% X5 p5 g
) a9 ] M7 o7 k7 ~8 {The unix version is available at ftp://sunsite.auc.dk/pub/infosystems/wget/. y+ _3 [' ?! g0 f" B$ S7 \9 |
3 t( h, R U9 T4 r* E7 d
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.3 D! ~+ p( D/ j! U3 H: z& l1 O
2 j2 N7 ? {; l, a5 B3 K% l' C4 cWGETRC file...2 I; r- N7 ~( G1 x9 n' s- ]; m
To set up a .wgetrc file under windows, you have two choices* m; T8 m6 s, F. }3 V+ c# b1 Y
/ H7 @* G0 Z9 V* tSet an environment variable called "WGETRC" which points to the full pathname of your wgetrc file
3 g+ U; z. P S" x: ?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', _$ _. E; q5 X' N, i
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/.0 a5 y6 E* k! @% _/ V
1 E; A. B" R1 K/ s. TDarko 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/.& L9 L2 ~- a- t/ @( p7 `2 k
f7 ^. e( B- u4 n2 nLachlan 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.
; R# c7 |! I& g7 X" }! z
+ B0 Y( ~4 Z, EPlease 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 H- G$ g; J8 `
7 i! B9 a/ a) qThis page has been accessed3 g" t Z6 @, t! @4 Q$ \
times since May 12, 1997.; C% ]6 p5 Y# N! P5 t9 s' k
; a% Y# k" W) }5 h
Questions / comments / changes? Please contact me at tcharron@interlog.com
+ ^6 c0 U, w$ N' L
; b: U5 n* k* D e
: S5 z: K9 l3 X* {. g- Y5 K! J! B# S* J( x* P
哈哈哈,解决了一个技术难题,感谢北緯十九度同志 |