Skip to content Skip to sidebar Skip to footer

The Default Path Of Python Urlretrieve Downloading File Via Http

We know that we could use urllib.urlretrieve to download file via HTTP to local file system. For example: import urllib urllib.urlretrieve ('http://www.example.com/songs/mp3.mp3',

Solution 1:

By default,if you don't give any path, the file will be in your current directory. And if your want to put the file in the specify location,you should always use the relative path instead of absolute path because your codes may run on different os system.


Post a Comment for "The Default Path Of Python Urlretrieve Downloading File Via Http"