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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2144|回复: 0

Easily mirror http/ftp sites to your local hard drive

[复制链接]
发表于 2012-3-6 23:21:21 | 显示全部楼层 |阅读模式
WGET for Windows3 e* U" P3 O. f: D  F5 e

' Z7 \' s# F6 [, OEasily mirror http/ftp sites to your local hard drive! N" ?* j( M0 J% x" `; {
. h1 w( Z8 d! k, u9 w, x$ N
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.# q  D" d. h7 b! ]# _$ m: c0 G1 P6 o7 d
/ g  }3 l3 q2 I5 D* t% v  |
The unix version is available at ftp://sunsite.auc.dk/pub/infosystems/wget/.
  C* J) c0 E- t" M' g$ Y$ L4 B+ n# G7 N0 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.
3 ~* }" @) I) Q9 Y9 k9 _- Y! s
; Z; C! r; w0 y( d8 X" \! ^9 KWGETRC file...' S$ B* g# C: j) p6 ~- I
To set up a .wgetrc file under windows, you have two choices
( a8 J* S- N0 K3 Y5 L$ Y& C" }  E1 i( d
/ c6 }1 H# P7 a9 W9 W; xSet an environment variable called "WGETRC" which points to the full pathname of your wgetrc file0 ~3 i# f# k6 K# ?0 s6 M3 K3 b( G
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'
1 h! i$ j/ F' |! c2 g& LHeiko 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/.
- y* U+ _* ]5 @- C. P
% I9 w$ d' e( g1 [( W# E) u! G; PDarko 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/.
/ N" y: P3 b! `! {6 ?" C7 w0 z' j$ e7 B8 H* i
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.( a( r6 T, f5 N+ E& x

3 U! F! g6 a8 d# XPlease 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.2 t  r: J! ]  b+ o' r( e" @

+ Z3 _3 m* q7 |/ |This page has been accessed
9 \5 M# ~/ o3 H' q6 qtimes since May 12, 1997.
' ^  m$ v# Y8 b; f  Q' ^
/ _" G7 h- r3 tQuestions / comments / changes? Please contact me at tcharron@interlog.com, p' ^: m( @2 Y: b4 r1 l

/ h4 h( f) T4 V6 |* `4 Z& O4 @  ?% n2 K

, P5 ]- [8 a) E! T' h" ]3 a( k哈哈哈,解决了一个技术难题,感谢北緯十九度同志
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-9 18:55 , Processed in 0.171400 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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