Created
June 21, 2023 10:58
-
-
Save topiga/e073ee5d957529a39566ecd22528bb26 to your computer and use it in GitHub Desktop.
Download images of every iDevice with ipsw
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 | |
which jq 1> /dev/null || echo "Please install 'jq' before using this script" | exit 1 | |
which curl 1> /dev/null || echo "Please install 'curl' before using this script" | exit 1 | |
which wget 1> /dev/null || echo "Please install 'wget' before using this script" | exit 1 | |
for device in $(curl https://api.ipsw.me/v4/devices | jq | grep "\"identifier\": \".*[0-9]*,[0-9]*\"," | cut -d':' -f2 | cut -d'"' -f2); do | |
URL="https://img.appledb.dev/device@main/$device/0.png" | |
wget -O $device.png $URL && echo "$device at $URL done" | |
sleep 1 | |
done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment