linux - Wget - 从第二深度下载网站

标签 linux command wget

我可以使用 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/

相关文章:

c - 如何在 X11 中获取系统比例因子

linux - 如何从终端切换回 vim 中的编辑器?

java - 使用 Linux 服务器的凭据连接到 AD

linux - 如何在 bash 中组合 "lsof -i :port"和 "kill pid"

linux - 有没有办法在通配符上使用 wget?

c++ - 如何仅使用 Linux 终端刷入 stm32?

git - sh.exe": syntax error near unexpected token `('

wpf - MouseDoubleClick 在 WPF 中使用 MVVM 的 ListItem

shell - 使用 wget 记录重定向的 URL shell 脚本

由于权限,Python urllib 不会下载文件,但 wget 会