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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2613|回复: 0

Easily mirror http/ftp sites to your local hard drive

[复制链接]
发表于 2012-3-6 23:21:21 | 显示全部楼层 |阅读模式
WGET for Windows% ?# @* D5 K( O5 r# N

+ j7 Z4 t: U7 @. sEasily mirror http/ftp sites to your local hard drive
9 e" B; G, ^  N' G% e/ L; r) ~! A" K- w, }. ?7 ~5 d# i* k7 W4 x3 [. ~
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.: A% k9 N; ^7 k% a6 c

: ]. E  E4 m7 b4 z. q: [0 |' ?The unix version is available at ftp://sunsite.auc.dk/pub/infosystems/wget/.
) Z# ^. r* }3 V. w% g' }5 q: R/ H) [8 F9 J) |: g% y# @$ h
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.
) x6 k; D) ~" E. w, w& u
& y: v2 U, u4 W- o, \WGETRC file...: A' n/ S; F+ A) g
To set up a .wgetrc file under windows, you have two choices
2 Y% v  J/ {* u% h% q0 e3 `+ K/ q
# E9 n6 M: e2 x: I8 ASet an environment variable called "WGETRC" which points to the full pathname of your wgetrc file
4 v* M/ ^' t' C* _# t. w/ hSet 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'! X6 l" E: f* s% F3 |8 t
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/.
; ]  |0 a* |: f
, e6 `2 k- A1 J5 w6 dDarko 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/.
7 j: p3 \5 X. l0 }1 @3 u  m8 b  K8 @# E/ z
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.
% G9 [3 a9 _5 [
9 L; ^, t  j+ A! [( \: kPlease 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., t& e- r& s3 k
( P* E( ?0 W: Q- b6 Q# Y/ S
This page has been accessed
" a! v6 ^3 M  O3 I5 ttimes since May 12, 1997.
0 J. A4 k" y* V0 |. ~% p( W) l' e; }
Questions / comments / changes? Please contact me at tcharron@interlog.com
4 Y  P) J5 y$ C5 ?* H& v
6 `# a+ `, q8 A' r4 [2 k% [8 B2 w5 c: ~' r8 K
" x2 L8 f! ~, ]; }  G5 P
哈哈哈,解决了一个技术难题,感谢北緯十九度同志
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-4-27 07:12 , Processed in 0.171548 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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