找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2970|回复: 0

Easily mirror http/ftp sites to your local hard drive

[复制链接]
发表于 2012-3-6 23:21:21 | 显示全部楼层 |阅读模式
WGET for Windows
; d( H9 O2 J5 e% c$ [. W3 T8 c( L* @8 Z& s$ N. U
Easily mirror http/ftp sites to your local hard drive
, O& U. F- U- ]0 s8 x. w( |
+ M0 E1 ~6 z( ^" g' P& v2 T5 ?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.. \- g- {) O) a/ n* {

( Y% C6 b3 t# B1 b2 O# _The unix version is available at ftp://sunsite.auc.dk/pub/infosystems/wget/.4 |" \( E! k5 ^) H$ ]) P

$ D: ^3 L0 F7 g7 P/ h6 ZThe 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.9 e$ j2 _# G6 y

! l: l5 u- o. [# T( C# [7 fWGETRC file...) h. G$ ?/ i3 [* B! j, I5 q" g# d
To set up a .wgetrc file under windows, you have two choices
7 W9 F1 X3 M1 d9 w% F* ?  Z& ]# F* F4 h- T7 N1 l0 @& c
Set an environment variable called "WGETRC" which points to the full pathname of your wgetrc file* R# C5 u* _( x1 x% d
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'+ a; v2 E% b* x+ k2 [
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/.! _* \9 a: J. d5 L  ]; B8 h+ A/ Y
9 U3 n" x9 u: S3 B
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/.
- I7 z/ I+ M0 f) Q, I  Q: T: _" R  c9 R* U6 ~) Y$ R  y. B7 }7 i, L  |
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.
% r+ u' E# D  {) n, S0 M- v4 y' |- b9 ~4 i. z' ?" J) K* Q
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.
8 V' Z# Y0 q4 _# T% A+ b, {
8 U8 g/ }' Q, c) Q1 P0 B0 BThis page has been accessed
5 J! O2 b4 q  c8 E! ytimes since May 12, 1997.  y: e( t$ V: R: c

; q; G) B! b: Q$ Y7 ~' KQuestions / comments / changes? Please contact me at tcharron@interlog.com  q6 j/ ?- Z) ?8 b. V0 I; L+ |4 U

' u# Q1 ~9 `' o3 ~
" ^& X1 m9 v0 `) e. }
+ i8 ?- \6 [7 n; i哈哈哈,解决了一个技术难题,感谢北緯十九度同志
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-3-7 08:19 , Processed in 0.108653 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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