Created
July 6, 2015 14:42
-
-
Save fgassert/7b0ad964b01390224150 to your computer and use it in GitHub Desktop.
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 | |
import urllib2 | |
def download(url, outfile): | |
# Download file at URL to OUTFILE | |
with urllib2.urlopen(url) as response: | |
with open(outfile, 'wb') as f: | |
f.write(response.read()) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment