---
title: "善用宅软之WGET"
author: "gladstone"
date: "2009-03-25T03:06:45Z"
tags: []
slug: "wget"
draft: false
lastmod: "2009-03-25T03:06:45Z"
id: 363119
url: "https://gladstone.iteye.com/blog/363119"
---

没钱买，只是PDF偷窥了一下[这本书](http://www.infoq.com/cn/minibooks/productive-programmer)

![](http://www.infoq.com/resource/minibooks/productive-programmer/zh/cover/pp_big.jpg)

 

某些章节说的蛮好，比如用Wget自动访问网站

 

 

![](http://static.ctba.cn/files/2009-03-24/2009_03_24_15_16_10_194.jpg)

整一个现成的爬虫嘛，以前倒是没发现Wget有这么强大的功能。

 

WINDOWS下用Cygwin或者UnixUtils也可以使用Wget。

 

E:\\tmp&gt;wget --help  
GNU Wget 1.8.2, a non-interactive network retriever.  
Usage: wget \[OPTION]... \[URL]...

Mandatory arguments to long options are mandatory for short options too.

 

比如，想下载整个[MySQL 5.1参考手册](http://static.j2bb.com/mysql5/ "http://static.j2bb.com/mysql5/")到本地，只需要以下命令

E:\\tmp&gt;wget --mirror --domains=static.j2bb.com --include-directories=mysql5/ [http://static.j2bb.com/mysql5/](http://static.j2bb.com/mysql5/)

 

数分钟时间就搞下来了：

 

![](http://static.ctba.cn/files/2009-03-25/2009_03_25_11_02_52_677.jpg)

 

以上，纳入我转载党居家旅行必备工具。

 

 

 发布时间：2009-03-25 11:06:45 | 阅读：262 | 评论：0