How to download an image in Python

Sometimes, simple problems have simple solutions. Downloading images with Python is one of those simple problems. Nonetheless, here's a simple snippet that shows you how to do it:

import urllib
urllib.urlretrieve("http://www.nicolasbouliane.com/pictures/0001.jpg", "my_picture_file.jpg")