Yeni bir Wget (Wget2) zaten bir özelliğe sahip:
--filter-mime-type Specify a list of mime types to be saved or ignored`
### `--filter-mime-type=list`
Specify a comma-separated list of MIME types that will be downloaded. Elements of list may contain wildcards.
If a MIME type starts with the character '!' it won't be downloaded, this is useful when trying to download
something with exceptions. For example, download everything except images:
wget2 -r https://<site>/<document> --filter-mime-type=*,\!image/*
It is also useful to download files that are compatible with an application of your system. For instance,
download every file that is compatible with LibreOffice Writer from a website using the recursive mode:
wget2 -r https://<site>/<document> --filter-mime-type=$(sed -r '/^MimeType=/!d;s/^MimeType=//;s/;/,/g' /usr/share/applications/libreoffice-writer.desktop)
Wget2 bugün itibariyle piyasaya sürülmedi, ancak yakında olacak. Debian'ın kararsız hali hazırda gönderilen bir alfa versiyonuna sahiptir.
Daha fazla bilgi için https://gitlab.com/gnuwget/wget2 adresini ziyaret edin . Soruları / yorumları doğrudan bug-wget@gnu.org adresine gönderebilirsiniz.