找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2972|回复: 0

Easily mirror http/ftp sites to your local hard drive

[复制链接]
发表于 2012-3-6 23:21:21 | 显示全部楼层 |阅读模式
WGET for Windows2 r! Z$ u' b7 a% |1 p/ w

3 K* B" b" @9 ^- M0 [9 QEasily mirror http/ftp sites to your local hard drive; c# L' V0 O, o( _
& [9 c4 c5 u) `( _- b% 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.  h3 {0 }& ]! ?  ?" Q2 F, v

4 k9 z$ S$ `/ HThe unix version is available at ftp://sunsite.auc.dk/pub/infosystems/wget/.
: f2 _: R  L0 Z, ?
4 d, F2 x$ |) e& 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.- B5 j# C/ X) ~( V1 n% x& b7 g

% T0 ^( [1 R: R3 e. VWGETRC file...: E- r* V; }) I$ U* ]- h5 |
To set up a .wgetrc file under windows, you have two choices
+ R/ M/ |! |- t7 N& R5 q* p$ ~# l  g  S, u7 e* e' X8 d7 h
Set an environment variable called "WGETRC" which points to the full pathname of your wgetrc file
+ M3 C- O6 n( Z/ k9 L  Q, }! rSet 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'
0 H% T5 E+ ?9 |" b2 EHeiko 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/.
* K$ J; I0 N0 g8 w% ?8 p% y; Y; z& `
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/.
% c3 O9 u4 Q( }2 ?) t3 H# g8 ^# B+ y
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.
( _9 l5 `" u, P9 _7 m% d6 m# y# T
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.% j2 T- U: M0 M) a9 {7 P) j% T  r

/ M/ f; P% h1 k6 }1 \' Q* Z* xThis page has been accessed
" G  c+ f6 _7 `2 O) _4 t7 itimes since May 12, 1997.
* D3 a# y7 G0 t$ S  Z
+ s" ~9 X9 s& E) s% W- E! m* m& dQuestions / comments / changes? Please contact me at tcharron@interlog.com
  W) U& S6 S# N) i5 f( m. K  G% |/ \* k" q( A7 _+ Z

6 T* Q5 o0 n7 F4 V9 X" [  n4 t+ L; F, D+ |. }9 `7 X2 S
哈哈哈,解决了一个技术难题,感谢北緯十九度同志
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-3-7 11:07 , Processed in 0.096738 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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