2013-02-19, 22:59
(2013-02-19, 22:50)doobiest Wrote: I'm not clear on what to set the path to for urlretrieve now that this is set.
urllib.urlretrieve("http://wwwerd.com/camera/", '/tmp/bell.jpg') should be changed to just 'path'/bell.jpg?
that was just to create the folder to store the image in.
next up, you'll need this code:
Code:
imagefile = os.path.join(path, 'bell.jpg')
urllib.urlretrieve("http://wwwerd.com/camera/", imagefile)