Skip to content

Instantly share code, notes, and snippets.

@0xBADDCAFE
Created January 3, 2014 21:24
Show Gist options
  • Save 0xBADDCAFE/8246872 to your computer and use it in GitHub Desktop.
Save 0xBADDCAFE/8246872 to your computer and use it in GitHub Desktop.
curl でリファラ必要の画像サイトリストから一括で抜き出したい
curl でファイルを予測して引っ張ってくる。
file -bi で mimetype image かを頑張ってチェックする。
ミスなら拡張子など変えてリトライ。
curl はバックグラウンドでモリモリ呼び出して並列にダウンロードする。
全部の curl が終わったことを確認する仕組みがほしい。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment