开发者

WGet mirroring without putting it in a subdirectory (i.e. domain.com)

开发者 https://www.devze.com 2023-02-23 04:10 出处:网络
I am trying to mirror a website (with permission, of course), but the files download into foo.com. wget -mkp http://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 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

精彩评论

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