Skip to content

Instantly share code, notes, and snippets.

@svendahlstrand
Last active August 12, 2019 09:57
Show Gist options
  • Save svendahlstrand/4d7e296249f69957892294ef6605ac70 to your computer and use it in GitHub Desktop.
Save svendahlstrand/4d7e296249f69957892294ef6605ac70 to your computer and use it in GitHub Desktop.
Download wallpaper-friendly art, by Swedish artist Simon Stålenhag.
#!/usr/bin/env sh
# Download wallpaper-friendly art, by Swedish artist Simon Stålenhag.
ROOT_URL="http://simonstalenhag.se"
MAX_PROCESSES=30
curl -s "${ROOT_URL}" |
grep -Eio "bilderbig[^\"]+\.jpg" |
sort | uniq |
xargs -P "${MAX_PROCESSES}" -n 1 basename |
xargs -P "${MAX_PROCESSES}" -n 1 -I {} curl -z {} -f -O "${ROOT_URL}/bilderbig/{}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment