WGET problem downloading pdfs from website

2019-02-12 16:38发布

问题:

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

I do in Cygwin:

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

but no files are downloaded.

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

回答1:

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

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



标签: wget