Last active
August 12, 2019 09:57
-
-
Save svendahlstrand/4d7e296249f69957892294ef6605ac70 to your computer and use it in GitHub Desktop.
Download wallpaper-friendly art, by Swedish artist Simon Stålenhag.
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
#!/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