wget -nd -r -l1 --no-parent http://www.iyunwei.com/docs/
注:-nd 不创建目录;-r 递归下载;-l1只下载当前目录下的文件;–no-parent 不下载父目录中的文件。
如果想指定下载制定后缀的文件,如只下载 http://www.iyunwei.com/docs/ 下 .html文件和.pdf文件:
wget -nd -r -l1 --no-parent -A.html -A.pdf http://www.iyunwei.com/docs/
下载网站目录下的除html 之外的文件和目录,且不遵守robots.txt的限制。
wget -c -r -np -k -L --reject=html http://www.iyunwei.com/docs/ -e robots=off