0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

wget 画像 取得

Posted at

wgetでのサイトからの画像のみの自動取得に手こずった。
調べてやっとできたので、忘れないように個人用にメモ

wget -nd -r -l 2 -H -P /save/location -A jpeg,jpg,bmp,gif,png http://www.somedomain.com

使用しているオプション
-nd:ディレクトリ作成を行わず取得したファイルを全て同一ディレクトリに保存
-r: 再帰的にダウンロード
-l: リンクの深さ
-H: そのドメインからのみ
-P: 保存場所
-A: 該当拡張子

参考元
https://stackoverflow.com/questions/4602153/how-do-i-use-wget-to-download-all-images-into-a-single-folder-from-a-url

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?