W获取镜像而不将其放入子目录(即domain.com)
我正在尝试镜像一个网站(当然要经过许可),但文件下载到 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
-n 在这里可以帮助你。
wget -nH --mirror http://example.com
-n is what'll help you here.
wget -nH --mirror http://example.com
尝试在“-nd”参数中使用 wget
try to use wget within "-nd" param