我可以使用 wget 从第二个深度和下一个子级别下载网站吗? 我只想下载从第一级引用的页面,但不下载第一级。
例如:
- 我的域名结构为:www.domain.cz/foo/bar/baz
- 我只想下载页面:bar 和 bar/baz
可能吗?
最佳答案
使用-np
。
-np --no-parent
Do not ever ascend to the parent directory when retrieving recursively. This is a useful option, since it guarantees that only the files below a certain hierarchy will be downloaded.
关于linux - Wget - 从第二深度下载网站,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24952421/