Skip to content

Instantly share code, notes, and snippets.

@awendland
Created June 4, 2015 21:02
Show Gist options
  • Save awendland/8990359801d71b232f78 to your computer and use it in GitHub Desktop.
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
#! /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