从网站下载pdf的WGET问题 [英] WGET problem downloading pdfs from website

查看:29
本文介绍了从网站下载pdf的WGET问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从这个网站下载所有的 pdf 和 ppt:http://mlss2011.comp.nus.edu.sg/index.php?n=Site.Slides

I'm trying to download all of the pdfs and ppts from this website: http://mlss2011.comp.nus.edu.sg/index.php?n=Site.Slides

我在 Cygwin 中这样做:

I do in Cygwin:

<代码>wget --no-parent -A.pdf,.pptx -r -l1 http://mlss2011.comp.nus.edu.sg/index.php?n=Site.Slides

但没有下载文件.

我需要在上面的 wget 命令中更改什么才能使其工作?

What do I need to change in the above wget command for this to work?

推荐答案

需要使用 -e robots=off 代码,所以这有效

needed to use the -e robots=off code, so this worked

<代码>wget -e robots=off -A.pdf,.pptx -r -l1 http:///mlss2011.comp.nus.edu.sg/index.php?n=Site.Slides

一般来说,使用 --debug 标志以获得更多帮助.

Also in general, use the --debug flag for more help.

这篇关于从网站下载pdf的WGET问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆