import requests r = requests.get("http://cs614918.vk.me/v614918558/83f3/gqmgMhanEWA.jpg") with open('a.jpg', 'wb') as f: # automatically close the file f.write(r.content) #another way #for chunk in r: # f.write(chunk)