質問

I'm downloading a complete website using wget. I would like to know that how can I modify this terminal command so that it excludes / skips / doesn't downlaod any .zip file.

wget -m -k -K -E -p --convert-links -e robots=off http://www.example.com/
役に立ちましたか?

解決

You can use --reject parameter

wget --reject *.zip ...

GNU Wget Manual (2.11 Recursive Accept/Reject Options)

他のヒント

wget -m -k -K -E -p --convert-links -e robots=off -R zip http://www.example.com/ 

Took this from GNU's manpage of Wget:

‘-R rejlist --reject rejlist’
    Specify comma-separated lists of file name suffixes or patterns to accept or reject (see Types of Files). 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. 

Hope this helps.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top