WGET for Windows
! K' f" X' J2 |
4 k$ z8 N* V- L2 u3 f2 GEasily mirror http/ftp sites to your local hard drive
& k) P1 V3 A% E- N5 Y) I
" H, H2 N# N OI 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.9 F D7 [) U( r* N8 i$ U( k( V7 O4 Y
9 Y$ q- O2 _" }3 E, D+ g; uThe unix version is available at ftp://sunsite.auc.dk/pub/infosystems/wget/.# d" `; }, i0 v- O
* A: Z0 g) l# r
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.
* p$ P% ?& `7 n7 h9 l1 f
( ~3 A6 m1 r7 n0 B: QWGETRC file...; n) b ^1 O: E! H" l/ E# m& R" C
To set up a .wgetrc file under windows, you have two choices& u. |3 D$ V3 v; d) ]
. @+ r) q7 f& h) mSet an environment variable called "WGETRC" which points to the full pathname of your wgetrc file$ r7 H8 l/ c) u) F2 X; r9 s
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'5 V- q' q( _" s+ Q
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/.! E. G' r0 s! m8 R* J3 n
/ g1 V0 I# f& o1 V1 ?5 C3 b- YDarko 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/.
0 Z- @$ T4 v' L, ?- F( X( Y
' w8 l# v6 u: y7 SLachlan 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.4 ^8 L1 R) g/ R
3 e# H% _0 T) U P) ?6 WPlease 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.
5 P( e1 D! d2 e6 z
/ d( v. I* P4 O- UThis page has been accessed3 O! o/ Q7 C! k# ]! u3 i3 D6 {
times since May 12, 1997.) y0 \, l A$ h& \6 `0 @: c
7 f N2 }( L) c2 v9 f7 B7 IQuestions / comments / changes? Please contact me at tcharron@interlog.com
4 \: }7 e5 p5 A0 q; v3 }4 I0 f0 s6 n2 k* c7 N' g. n* a
1 V2 S2 [% l7 a" G+ _
* Z5 X3 s6 n/ j哈哈哈,解决了一个技术难题,感谢北緯十九度同志 |