Skip to content

Instantly share code, notes, and snippets.

@Mebus
Created March 14, 2015 10:04
Show Gist options
  • Save Mebus/7fda568be8dd6fd3efef to your computer and use it in GitHub Desktop.
Save Mebus/7fda568be8dd6fd3efef to your computer and use it in GitHub Desktop.
wget.py
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