找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2876|回复: 0

Easily mirror http/ftp sites to your local hard drive

[复制链接]
发表于 2012-3-6 23:21:21 | 显示全部楼层 |阅读模式
WGET for Windows4 P, ~( O. G  f2 B7 K
1 ^2 r& ]& a1 u8 f4 F( |
Easily mirror http/ftp sites to your local hard drive0 J. m" }; d: I
7 r1 A7 a* V. v
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.9 H1 J( Z( q+ X; N7 i

8 w, V! D# ^& g' R) u5 ?2 T8 S, LThe unix version is available at ftp://sunsite.auc.dk/pub/infosystems/wget/.
' E! G6 Y8 A) t; B* `- w7 `; ?9 r1 x+ f/ E3 u
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.
. a0 S) M# `: ]/ k& O; U$ o; j5 z1 c+ p9 }
WGETRC file...
0 F, W, y$ x# STo set up a .wgetrc file under windows, you have two choices
9 P  ~1 w# \, ^6 X, L8 x- j; w  n1 k2 W
Set an environment variable called "WGETRC" which points to the full pathname of your wgetrc file
3 B3 u! Q- u7 p, O) P, zSet 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'
# a* L& Y' K& K; ?5 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/.
( ^. l: Z) {" h7 u: t" R+ t
) |; |4 b! J) e& g; B9 ZDarko 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/., @3 A/ G; q: q$ a5 c% ~9 {
6 T4 A; D3 @, t2 G. a
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.8 T) C2 X. A( Z
! w4 e2 q; ?# A0 Z5 i
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 [email protected] with the word subscribe as the subject.
' y) |8 f7 V- }* e3 T8 x$ v
; q; y0 e" I# E% ]9 i" OThis page has been accessed$ @- X( F, C6 t6 a1 g' Z  r
times since May 12, 1997.
2 V( k: b$ H. B% c" a
# G: `* V! N3 h" _1 j# PQuestions / comments / changes? Please contact me at [email protected]2 g* u2 E1 D3 r) P
  A9 T$ o- s5 C
$ I- R; J  R; @1 e! p5 p- j6 R8 ^
( o" y) n2 ^: v4 v: _+ i- \2 z& P
哈哈哈,解决了一个技术难题,感谢北緯十九度同志
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-2 04:17 , Processed in 0.075197 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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