Skip to content

Instantly share code, notes, and snippets.

@topiga
Created June 21, 2023 10:58
Show Gist options
  • Save topiga/e073ee5d957529a39566ecd22528bb26 to your computer and use it in GitHub Desktop.
Save topiga/e073ee5d957529a39566ecd22528bb26 to your computer and use it in GitHub Desktop.
Download images of every iDevice with ipsw
#!/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