I want to download all images from a webpage but when I type:
$ wget -nd -r -P images -A "*.jpg, *.jpeg, *.png" "Path/to/url"
wget not only downloads images from the webpage I want but it also downloads every other image from the website and loops forever. I have to stop it with Ctrl+C.
When I change the command to:
$ wget -np -nd -r -P images -A "*.jpg, *.jpeg, *.png" "Path/to/url"
It doesn't download anything at all.
Note: When I run either of the two commands,
wget always prints this message:
"Removing 'filename' since it should be rejected"
How do I use
wget to download images from a webpage?