Search code examples
wget

wget only download the index.html


hi guys i want to get video from this site (https://5sep.zetfix.online/films/burja/) but wget only downloads index.html what is my mistake?

wget -r --no-cookies --no-check-certificate --page-requisites --span-hosts --convert-links --no-directories --directory-prefix=output -e robots=off --header="Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7" --header="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7" --header="Accept-Encoding: gzip, deflate, br" --header="User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" --header="Referer: https://5sep.zetfix.online/films/poltora-dnja/" –wait 5 –randomwait https://5sep.zetfix.online/films/burja/


Solution

  • You are supplying a header which tells the remote that you accept gzipped input:

    --header="Accept-Encoding: gzip, deflate, br"

    However, wget does not seem to appreciate when it gets actual gzip response - saves that response to index.html as gzipped stream and does not extract any further links.

    If you remove that parameter, actual recursive downloading begins.