【问题标题】:How to have wget download an entire subsite without downloading the entire site如何让 wget 下载整个子站点而不下载整个站点
【发布时间】:2019-05-20 20:29:58
【问题描述】:

我需要下载并存档大约 50 个子网站(包括子网站内的所有工作链接),这些子网站是作为我公司主要门户的一部分创建的。我需要 wget 下载子网站而不下载整个网站。

从我所做的一些搜索来看,这是我迄今为止尝试过的

wget --mirror --page-requisites --convert-links --recursive --adjust-extension --compression=auto --reject-regex "/search|/rss" --no-if-modified-因为 --no-check-certificate --user=xxxxxxx --password=xxxxxxx

这反而下载了每个子站点的主页,而没有任何实际链接工作。

【问题讨论】:

    标签: web wget download


    【解决方案1】:

    您应该添加--no-parent 以限制您想要的部分。

    示例行是wget --mirror --convert-links --page-requisites ----no-parent -P /path/to/download https://example-domain.com

    【讨论】:

      猜你喜欢
      • 2021-04-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-06
      相关资源
      最近更新 更多