找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2878|回复: 0

Easily mirror http/ftp sites to your local hard drive

[复制链接]
发表于 2012-3-6 23:21:21 | 显示全部楼层 |阅读模式
WGET for Windows
8 H! H- _; X0 C  B" d2 L4 L
- z) M0 O0 w( v( r- ^Easily mirror http/ftp sites to your local hard drive
3 t! }8 R! ^9 `. n9 U4 x( Y% o3 Q7 T3 j5 A: k# F/ J+ Z
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., I2 h( ^- X8 _# G

: J0 Y! m5 L- C6 q" C4 U& OThe unix version is available at ftp://sunsite.auc.dk/pub/infosystems/wget/.
" W6 c4 ]5 z* t+ I
3 z" r8 z% m8 y' CThe 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.
1 ?" A* N4 q9 t! _' \. ^0 a: `8 h* M) v" }0 `7 [. V
WGETRC file...
! ]6 _) X8 J- U3 c/ c3 e! gTo set up a .wgetrc file under windows, you have two choices7 }; x' U1 y6 d. }2 R

8 W; w  @$ s; B; \  p6 j" LSet an environment variable called "WGETRC" which points to the full pathname of your wgetrc file
& d, z3 |/ K( D7 m  BSet 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'
2 u' ~6 J9 a( ~, k, Q7 a# Q2 o+ wHeiko 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/.
  @" I7 Z' Z1 p3 o/ d
8 \' P9 i5 Q, c- P% aDarko 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 `6 j3 x/ T; ^  B
& G& S4 F! V& c; SLachlan 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.
: K0 X# Q. T7 |/ v. X4 g4 l& s: c# f9 A4 u5 x
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 [email protected] with the word subscribe as the subject.
8 C. @* C3 J7 U2 n2 x
' D* }3 |/ |8 b. g% G6 ^1 [This page has been accessed
) f; J$ V- y$ Ztimes since May 12, 1997.
" \7 m/ l% u9 J; r! t4 M
9 M* {! ~+ b$ ^4 L' _7 ~Questions / comments / changes? Please contact me at [email protected]& E; z1 j! w7 D
( E& H1 _5 t1 z$ e
$ b8 w" F1 C- b$ n

- f# O7 i2 A9 g8 v: j$ D4 G哈哈哈,解决了一个技术难题,感谢北緯十九度同志
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-2 07:13 , Processed in 0.079461 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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