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
Post a Comment