WGET for Windows
E% b. u$ \$ w- V+ I' G$ L
$ m! [2 M' K' h* I! i' b) XEasily mirror http/ftp sites to your local hard drive" s& g7 b) S2 N. D( e: L# A- k
, d" s& S+ d6 [9 X- e/ \I 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.8 C1 t3 w3 s2 ^# _: A- B- i5 M
2 H! ~( I T3 \* b6 kThe unix version is available at ftp://sunsite.auc.dk/pub/infosystems/wget/.! I+ {' l+ E; M/ `2 A4 `
; F5 h* p& D. n d8 ?
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.; ?% }6 S4 ]' }+ X X! U
" d1 F1 O3 @, g# N3 i! [WGETRC file...
b, Y+ S7 C* Z0 oTo set up a .wgetrc file under windows, you have two choices# q" B) @9 ~( u
0 q9 X. ~* J/ g9 Z# q' M9 c
Set an environment variable called "WGETRC" which points to the full pathname of your wgetrc file
C, `- ?1 k3 X9 M2 }9 ~/ d- SSet 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'
: L8 d. V, N) Z. aHeiko 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/.# Z# G0 T( c2 \; P
! \: r% W3 L6 P) x+ X9 [1 C, ODarko 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/.% G8 l; \6 }8 z& e1 W
4 a# O4 r) o' z+ W5 ALachlan 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.
1 t5 \$ h8 n9 s e' o) g" _
7 ]1 h! P/ F2 ?* ~9 SPlease 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.
3 _8 T& t3 P J7 I* x! o+ \8 i5 @, \& p
This page has been accessed
0 d2 A4 G/ t6 a- [times since May 12, 1997.- d- i5 ~7 Z. K; a& D! j$ |
2 L s. x- j) H8 d* YQuestions / comments / changes? Please contact me at tcharron@interlog.com
$ T) F" h W7 _' s# q
9 `6 ^7 [2 q0 h# z, H; O
" D& Z3 N) Z M$ |. R* b& a/ r9 z# K! D: {: l) ?: r
哈哈哈,解决了一个技术难题,感谢北緯十九度同志 |