W获取镜像而不将其放入子目录(即domain.com)

发布于 2024-10-30 17:55:22 字数 198 浏览 11 评论 0原文

我正在尝试镜像一个网站(当然要经过许可),但文件下载到 foo.com 中。

wget -mkp http://foo.com

给我一个名为 foo.com 的文件夹,其中包含所有文件。

我如何让它将文件下载到当前目录?

编辑:我仍然想要文件层次结构,但我希望层次结构的根是当前目录

I am trying to mirror a website (with permission, of course), but the files download into foo.com.

wget -mkp http://foo.com

gives me a folder called foo.com with all the files.

how do i get it to download the files to the current directory?

EDIT: I still want file hierarchy, but i want the root of the hierarchy to be the current directory

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

那些过往 2024-11-06 17:55:22

-n 在这里可以帮助你。

wget -nH --mirror http://example.com

-n is what'll help you here.

wget -nH --mirror http://example.com

╰沐子 2024-11-06 17:55:22

尝试在“-nd”参数中使用 wget

wget -nd --mirror http://example.com

try to use wget within "-nd" param

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