Created
June 11, 2011 12:38
-
-
Save azu/1020525 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo ダウンロード起点URL : %1 | |
wget ^ | |
--no-verbose ^ | |
--no-clobber ^ | |
--page-requisites ^ | |
--html-extension ^ | |
--convert-links ^ | |
--restrict-file-names=windows ^ | |
--no-parent ^ | |
--directory-prefix=D:\MyDocuments\Dropbox\workspace\toybox\siteReading ^ | |
%1 | |
:: このコマンドで%1のファイルを全て取得することができます。 | |
:: -nv, --no-verbose 冗長ではなくする | |
::--recursive: 関連する全てのウェブサイトを保存する | |
::--domains website.org: webside.org以外のlinkの先を保存しない | |
::--no-parent: 親ディレクトリ(上位階層)のリンク先を保存しない | |
::--page-requisites: 画像やCSS等、ウェブサイトを構成する全ての要素を収集する | |
::--html-extension: HTML ファイルに拡張子 ".html" を付加する | |
::--convert-links: HTML 中のリンクを相対指定に書き換える。つまりローカルで読めるようになる | |
::--restrict-file-names=windows: Windowsでも快適に読めるようにファイルネームを修正する | |
::--no-clobber: 既に存在しているファイルを上書きしない | |
:: -P, --directory-prefix=PREFIX ファイルを PREFIX/ 以下に保存 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment