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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -