Reputation: 6711
I use wget to download webpages from websites but it downloads the whole website instead of downloading a specific folder on the website, even if I specify the particular path.For example,
wget -r www.example.com/subfolder/
Using the above command, downloads all the pages from the website instead of downloading the pages from /subfolder.
Upvotes: 1
Views: 924
Reputation: 994481
The wget
help shows the following option:
-np, --no-parent don't ascend to the parent directory.
By default, there are likely links from the subfolder to the site home page, which wget normally follows.
Upvotes: 3