Skip to content

Instantly share code, notes, and snippets.

@cgsdev0
Created September 25, 2024 03:49
Show Gist options
  • Save cgsdev0/965cb4bed1ca212bb2d767936b1868cd to your computer and use it in GitHub Desktop.
Save cgsdev0/965cb4bed1ca212bb2d767936b1868cd to your computer and use it in GitHub Desktop.
#!/bin/bash
curl -Ss "https://storage.googleapis.com/panels-api/data/20240916/media-1a-i-p~s" \
| jq -r '.data
| to_entries[]
| "-o \(.key)/\(.value
| to_entries[]
| "\(.key).jpg \"\(.value)\"")"' \
| xargs -L50 curl -Ss --parallel --create-dirs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment