Если я получил вам правильно, вам нужно избегать загрузки index.html.
Затем вам нужно это (из WGET
MAN страницы):
-R rejlist --reject rejlist
Specify comma-separated lists of file name suffixes or patterns to
accept or reject. Note that if any of the wildcard characters, *,
?, [ or ], appear in an element of acclist or rejlist, it will be
treated as a pattern, rather than a suffix. In this case, you have
to enclose the pattern into quotes to prevent your shell from
expanding it, like in -A "*.mp3" or -A '*.mp3'.
Итак, вы должны добавить -r index.html, и он будет проинструктировать wget
, чтобы исключить index.html из списка файлов скачивать.