找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2850|回复: 0

Easily mirror http/ftp sites to your local hard drive

[复制链接]
发表于 2012-3-6 23:21:21 | 显示全部楼层 |阅读模式
WGET for Windows& E, Y6 V; }5 K* X' I
1 ]& K! R! Z$ v7 d  k
Easily mirror http/ftp sites to your local hard drive9 s: F9 _( h- F2 Y3 o

5 D* ~! E1 R( H3 d9 T: G" q7 EI 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.3 `. V4 ?2 s2 J0 Z: L) T' D. }
+ [3 O" o" P* Y" O. U3 b7 A- A& L" J
The unix version is available at ftp://sunsite.auc.dk/pub/infosystems/wget/.2 T3 ]" t. ?, A8 T  Z. q1 D
0 R0 Y9 E$ O  ~" @4 K# Z1 y
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.% X! ~9 D- ?& ^, e0 J6 f7 B+ w/ b

9 `) I/ M% E8 S' t: }! e6 c5 p  GWGETRC file...5 |9 W  x2 ?! x7 Z4 U* x; a5 `" l
To set up a .wgetrc file under windows, you have two choices% x. h+ h4 l' a! ]- r
! P$ `- Z5 v7 }0 o; Z" F7 \4 |
Set an environment variable called "WGETRC" which points to the full pathname of your wgetrc file
, E- c3 u5 q( H5 U2 hSet 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'
' O$ `" @: {- j' z2 v& sHeiko 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/.. ^- a' H+ B) S

& A% o6 V1 f, w' g4 W8 w1 `3 X; s' |Darko 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/.2 L9 X! }* S+ {* @+ C0 H

. e; u3 ^. H, N. J/ V" KLachlan 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.) @- L- o" J0 ]( G- ]% x. M

2 z2 U- i9 I! ^9 @+ h4 l# APlease 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.8 s; R# Y: {6 P: e$ ]' K
! t' H- b0 X( e/ @
This page has been accessed
3 [4 f" A2 l1 `  x; Gtimes since May 12, 1997.
0 V4 l: r+ {- R, X8 {9 Q, X! a
$ W+ C+ n& q1 `/ `Questions / comments / changes? Please contact me at tcharron@interlog.com
" r: {9 t: v' G+ t" Z, S8 G0 a- T. V. G* w
* m3 S( R7 K- P" Z4 m* C, N

+ j8 Z+ `, V) t; `: U哈哈哈,解决了一个技术难题,感谢北緯十九度同志
回复

使用道具 举报

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

本版积分规则

QQ|手机版|赛格电脑 华强北 电脑城 南山赛格 龙岗电子世界 龙华电脑城 沙井电脑城 松岗电脑城 pc4g.com ( 粤ICP备16039863号 )

GMT+8, 2025-8-14 05:58 , Processed in 0.039201 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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