Created
September 25, 2015 11:52
-
-
Save novogrammer/1dafa2eb1faa299178b1 to your computer and use it in GitHub Desktop.
Automatorとかでwgetを使って一括ダウンロードするやつ
This file contains 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
#!/bin/bash | |
# $ ./一括ダウンロード.sh "http://example.com" | |
mkdir -p ~/Desktop/一括ダウンロード/ | |
cd ~/Desktop/一括ダウンロード/ | |
echo "==== begin download $1 ====" >> log.txt | |
/usr/local/bin/wget --recursive --no-parent --page-requisites --html-ex --trust-server-names $1 >> log.txt 2>&1 | |
echo "==== end download $1 ====" >> log.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment