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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2718|回复: 0

Easily mirror http/ftp sites to your local hard drive

[复制链接]
发表于 2012-3-6 23:21:21 | 显示全部楼层 |阅读模式
WGET for Windows+ n1 H0 F, O( e1 |
" W+ {9 e2 L# P0 X: }( J7 y+ }
Easily mirror http/ftp sites to your local hard drive, n  q7 L3 R# `) h, P+ j

7 z- V4 e7 e3 R" m# EI 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% f1 a. H% ]1 U: ~" ~. R
- p0 Z' E7 S3 |& `  P% p: qThe unix version is available at ftp://sunsite.auc.dk/pub/infosystems/wget/./ |: X" P4 l: `* b; J8 c
$ m! a$ z) u) u9 k  I& B
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.( f% K/ b* v& s5 l! B
% u+ i/ G0 ~+ X5 Y+ ~
WGETRC file...
" V, a" D3 {/ K& N5 \$ jTo set up a .wgetrc file under windows, you have two choices/ e; q" K5 x9 k5 F
0 w( f" B! I4 p4 _7 \5 _( _7 h
Set an environment variable called "WGETRC" which points to the full pathname of your wgetrc file
5 h0 u. @6 C5 t0 J; C; a$ j' 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'
# p! G1 o, l$ N$ 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/./ h5 |: @1 b7 W- Y3 C  [
3 J2 D) y0 Y$ ^4 U' ~2 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/./ P6 w% k3 Z; c9 Y5 x8 H- G
1 \, `3 b& [; K2 Y! E- N  r. ^
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.
3 P) B" v7 f; F$ d, Y
: M( U2 w1 F- J4 b, i. y+ f! `; s4 qPlease 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 A& f9 E- s- H0 F# Z/ L* b3 E2 ^' c3 W: c
This page has been accessed
4 K* g. r8 L0 ^. {, atimes since May 12, 1997.; n; {1 y; [8 ?$ I+ a

/ {8 U( _; @' s  P0 A% j& bQuestions / comments / changes? Please contact me at tcharron@interlog.com
9 v. N. p$ S. b" |  y
! F/ f1 d8 E( e0 U: L) _/ G# j+ u; {. x5 K/ |6 L5 m7 k" i1 o; H

) ]; X' X% D5 u/ I( O9 A! z哈哈哈,解决了一个技术难题,感谢北緯十九度同志
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-19 20:51 , Processed in 0.107977 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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