How to pull image links from a website and download them using wget?

I really want to download images from a website, but I don't know much to do. They put the images on a separate website, as I click on the link to the image from the website using a cat or something like that, so I can use wget to download them all. All I know is the wget part. Example: Reddit.com

  wget -i download-file-list.txt
+5
source share
2 answers

Try the following:

wget -r -l 1 -A jpg,jpeg,png,gif,bmp -nd -H http://reddit.com/some/path

1 , http://reddit.com/some/path ( , -nd), , "jpg", "jpeg", "png", "gif" "bmp". .

+9

perl WWW::Mechanize. stdout:

use WWW::Mechanize;

$mech = WWW::Mechanize->new();
$mech->get("URL");
$mech->dump_links(undef, 'absolute' => 1);

URL URL.

+2

All Articles