Exclude domains and file types with wget

0

I have found a lot of information about it, but I have not been able to exclude domains and file extensions from wget.

I have a .txt file that has many urls. I want to avoid downloading images (jpg, png, gif) of certain domains and also avoid downloading html or files of links.

Using the following command I download everything inside file.txt

wget -i file.txt

In file I have the following urls

https://feedly.com/
http://img2.rtve.es/v/3195388?w=1600&preview=1435846554460.jpg
https://images.vexels.com/media/users/3/127855/isolated/preview/c3f01cf799e4c8714a815fac05820bea-reloj-despertador-plana-verde-by-vexels.png
https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating_earth_%28large%29.gif 

To exclude tried domains wget -i file.txt --exclude-domains img2.rtve.es

And to exclude extensions wget -i file.txt --reject gif

What is missing?

    
asked by tomillo 17.05.2018 в 20:30
source

0 answers