What I am trying to do, is to download the latest uploaded picture with Python.
I know how to download a certain image by using the following code:
import urllib
def download_an_image(image_url):
filename = 'glitch.jpg'
urllib.urlretrieve(image_url, filename)
return filename
But how do I tell Python to download the latest image from a given Tumblr account?