I'm terrible at python and need your help with two questions
#20
(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)
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply


Messages In This Thread
RE: I'm terrible at python and need your help with two questions - by ronie - 2013-02-19, 22:59
Logout Mark Read Team Forum Stats Members Help
I'm terrible at python and need your help with two questions0