Created
March 14, 2015 10:04
-
-
Save Mebus/7fda568be8dd6fd3efef to your computer and use it in GitHub Desktop.
wget.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib, os | |
# if you comment out this line, it will download to the directory from which you run the script. | |
os.chdir('/tmp/test') | |
url = 'http://www.mydomain.com/myfile.txt' | |
urllib.urlretrieve(url) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment