如何使用WGET从特定文件夹下载网页



我使用wget从网站下载网页,但它下载了整个网站,而不是在网站上下载特定文件夹,即使我指定了特定的路径。例如,

wget -r www.example.com/subfolder/

使用上述命令,从网站下载所有页面,而不是从/子文件夹下载页面。

wget帮助显示以下选项:

  -np, --no-parent                 don't ascend to the parent directory.

默认情况下,可能有从子文件夹到网站主页的链接,wget通常会遵循。

最新更新