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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -