华强北电脑城 龙岗电子世界 龙华电脑城  凯尔电脑

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2712|回复: 0

Easily mirror http/ftp sites to your local hard drive

[复制链接]
发表于 2012-3-6 23:21:21 | 显示全部楼层 |阅读模式
WGET for Windows! D& m! a: ~/ j1 g6 p* K; ~

1 Z" i7 H9 X5 M) \; N1 kEasily mirror http/ftp sites to your local hard drive3 c  |/ L2 X  n, U% P

6 L6 C% z1 S- J9 `) j5 N" }4 R! Q: fI 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 r* W7 U+ f- b5 |6 B8 [" ]
8 K7 j' q9 t6 O: R* `  @" J
The unix version is available at ftp://sunsite.auc.dk/pub/infosystems/wget/.3 m% Z7 q8 M: `) F3 r# k( A

. K% X- h. \3 J7 [% G6 R. {) bThe 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.! O: I  O5 b! u5 \
7 @( b: p: U9 |, t
WGETRC file...; S; E& r$ l1 S. N) ]
To set up a .wgetrc file under windows, you have two choices2 d. b" J1 E/ l8 T( [

3 l4 a  m, t+ B0 S" }1 D2 zSet an environment variable called "WGETRC" which points to the full pathname of your wgetrc file/ u: N( I" s! \; g6 Y; @
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'- c( T, }3 ?4 z7 D, E, I/ g
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/.. S' q8 G, u5 i1 v8 q9 T( u
, E2 i' L" S* w% h
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/./ A! u+ P% a, p2 H
: ?7 X1 _' y+ h
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.
. T$ X+ p' R* o! f6 k3 A- E
; _: n+ P- P  a  i9 p* g& \: ^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.0 m+ z. C4 Q6 n! Y

5 h3 p4 W& w6 DThis page has been accessed6 C1 c8 {# j' S6 [9 h' D  I3 T: Y! D
times since May 12, 1997.
3 T  _. ~! X1 \( z! i, `! b) l* o" t& Z3 w% m% k
Questions / comments / changes? Please contact me at tcharron@interlog.com; ]: ~& r1 k* K2 \& n3 `& b/ k

3 J( p: R& g. z5 r9 v0 ?% p% Z7 ]
' x* W% |' ^: g& k
% E; W* ^' @6 X4 ?8 ?哈哈哈,解决了一个技术难题,感谢北緯十九度同志
回复

使用道具 举报

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

本版积分规则

QQ|华强北 电脑城 龙岗电子世界 龙华电脑城 pc4g.com ( 粤ICP备16039863号 )

GMT+8, 2025-6-17 20:03 , Processed in 0.084253 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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