0 Reputation Points
100% Quality Score
- Upvotes Received
- 2
- Posts with Upvotes
- 1
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
1 Posted Topic
Re: If you're attempting to download a file in Python, it's very simple: [code] import urllib, os # if you comment out this line, it will download to the directory from which you run the script. os.chdir('/directory/to/save/the/file/to') url = 'http://www.mydomain.com/myfile.txt' urllib.urlretrieve(url) [/code] |
The End.