开发者

WGet mirroring without putting it in a subdirectory (i.e. domain.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 h开发者_开发问答ierarchy, but i want the root of the hierarchy to be the current directory


-n is what'll help you here.

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


try to use wget within "-nd" param

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜