import urllib
url = 'http://www.goldb.org/images/goldb.png'
f = urllib.urlopen(url)
fh = open('goldb.png', 'wb')
fh.write(f.read())
fh.close()
1 comment:
Shorter version:
import urllib
url = '...'
urllib.urlretrieve(url, 'goldb.png')
Post a Comment