Created
June 4, 2015 21:02
-
-
Save awendland/8990359801d71b232f78 to your computer and use it in GitHub Desktop.
This simple python script downloads the retina wallpapers from the gorgeous http://species-in-pieces.com web experience
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 python | |
# | |
# This should be run from whichever director is desired for the wallpapers to be downloaded to | |
# | |
# Also, take a look at http://species-in-pieces.com/, it's a gorgeous website! | |
# | |
# Thank you to Bryan James for creating Species in Pieces | |
# | |
import urllib | |
base_url = "http://species-in-pieces.com/img/assets/wallpapers/2560x1600/2560x1600_%s.png" | |
animals = ["crow", "vaquita", "tamarin", "frog", "owl", "turtle", "oryx", "iguana", "seahorse", | |
"armadillo", "sloth", "kakapo", "echidna", "penguin", "damselfly", "bear", | |
"parrotfish", "camel", "butterfly", "ostrich", "panda", "tapir", "sifaka", "lynx", | |
"rhino", "peccary", "okapi", "loris", "hirola", "drill"] | |
for animal in animals: | |
url = base_url % animal | |
file_name = animal + ".png" | |
urllib.urlretrieve(url, file_name) | |
print("'%s'" % file_name) | |
print("\nEnjoy!\n\nhttp://species-in-pieces.com") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment