wget を使用してサブディレクトリのみをダウンロードするにはどうすればよいですか? ダウンロードするサブディレクトリを指定できますか?
ありがとう!
できるよ:
wget -r -l1 --no-parent http://www.domain.com/subdirectory/
どこ:
-r: recursive retrieving
-l1: sets the maximum recursion depth to be 1
--no-parent: does not ascend to the parent; only downloads from the specified subdirectory and downwards hierarchy
$ wget -m -p -E -k -K -np {URL Address}
オプションの詳細については、man ページを使用できます。
注:前のオプションでは、ファイルのインデックスがダウンロードされます!
うまく使えた情報。私は試した:
wget -r -l1 --親なし http://www.domain.com/subdirectory/
name.subname.subname2.etc.htm または .html の形式の複数のファイルを含むサイト。これらを拾うために私は走った:
wget -r --親なし http://www.domain.com/subdirectory/
これはうまくいきました。