WGET for Windows
/ {( i z. l& t% S2 x) a r% t) f" u. _6 _2 t7 m) I
Easily mirror http/ftp sites to your local hard drive4 a: W5 q) I) K8 `) ]" X" H
+ c; p3 k4 w$ a8 {6 JI 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., x0 K4 |/ `' C5 C( r
) `0 }# Y9 ^( P4 \The unix version is available at ftp://sunsite.auc.dk/pub/infosystems/wget/.) @2 |% ^( i# `$ e9 j' \; {3 S& u
) Z2 p" a1 P) v# o
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.
) { c1 ]+ h3 s! Y5 @) w2 m$ S; i, C, `4 b" o5 m8 h- U( a" w! C
WGETRC file...
: p+ B; c) Q, s' W" U# eTo set up a .wgetrc file under windows, you have two choices
! u; T8 j+ g: ~6 K( _6 [+ K* i" r2 |9 z( c, H7 g9 j0 V$ p- p" a
Set an environment variable called "WGETRC" which points to the full pathname of your wgetrc file3 Y# J9 T6 j! i% g, I$ G) ^ z0 H* A
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'9 N3 T! s8 L* W( Z# s( k
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/.
6 T, n# a e+ E
3 N4 d7 d( b. R/ W& l# jDarko 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/.
& k/ | i- g. J, P' v; d! x8 |) l Z& T
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.
" F% g" R+ X5 I$ ?1 W9 M+ L8 N9 ~9 a s N2 F
Please 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.
4 F7 D4 B) T0 j2 |. s# I: y* x: c; [( X$ R+ y
This page has been accessed
, r+ B7 a9 H3 ]* V& b: s+ @6 itimes since May 12, 1997.
% ^( G; P' i" b! d7 Q! |, ^
1 t1 s1 x3 ]& J8 K. L- W# o' Q$ sQuestions / comments / changes? Please contact me at tcharron@interlog.com: g3 Y4 R# d g) J; f
8 G" p8 l9 R$ {6 b& k9 l+ C9 Q _# |% P* V7 {$ o
4 f8 X$ ?0 S! I8 J: y( @3 [" |
哈哈哈,解决了一个技术难题,感谢北緯十九度同志 |