# App Store のとあるページのURL
url='https://apps.apple.com/jp/developer/google-llc/id281956209#see-all/i-phonei-pad-apps'
# HTMLをパースし png ファイルをダウンロード(同名ファイルは後で処理)
curl "$url" |
grep -oE 'http[^ ]+.png ' |
tr -d ' ' |
wget -i -
# *.png.1 のようなファイルを適当にリネーム
ls *.png.* |
awk -F. '{print "mv "$0, $1"_"$NF".png"}' |
sh -x
# GooglePlay のとあるページのURL
url='https://play.google.com/store/apps/developer?id=Amazon+Mobile+LLC&hl=ja&gl=US'
# HTMLをから画像URLを抽出
curl "$url" |
grep -oE 'img data-src="[^"]+"' |
uniq |
cut -d'"' -f2 |
# 画像URLの一部をファイル名にしてダウンロード
awk -F/ '{printf "wget -O \047%s.png\047 \047%s\047\n", substr($4,1,8), $0}' |
sh -x
この方法では、全ての画像を一気に取得するのは無理