How to specify the file path in which to download using python -


urllib.request.urlretrieve ("http://bogoroditsa.tk/grant's%20libraries/", "extrafunctionality.py") 

how specify, using command above, file path in download file? currently, code above downloads file in same path program being run in. specify download path, how do so?

instead of "extrafunctionality.py" can provide full path:

urllib.request.urlretrieve ("http://bogoroditsa.tk/grant's%20libraries/",                                              "/home/foo/extrafunctionality.py") 

Comments

Popular posts from this blog

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -