无法下载目录

发布于 2024-10-16 05:10:59 字数 220 浏览 6 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无敌元气妹 2024-10-23 05:10:59

如果我理解正确,您应该使用 -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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文