无法下载目录
I am using wget to download the images which are contained here but when i do this I just get the index file downloaded? How do I get the entire directory downloaded as a folder on my machine?
btw I use wget -np -r URL
to do this
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我理解正确,您应该使用 -m 选项,如下所示:
wget -m http://yourwebsite.com。
我尝试使用您的主机,发现有一个 robots.txt 文件不允许下载 wget。
因此,适合您的命令应该如下所示:
wget -m -e robots=off http://yourwebsite.com
If I understood correctly you should use the -m option, this way:
wget -m http://yourwebsite.com
.I tried with your host and I see there's a robots.txt file that disallow wget to download.
So the right command for you should be the following:
wget -m -e robots=off http://yourwebsite.com