import urllib
def download_file():
remoteFileName = u"http://example.com/a.txt" # set the url here
localFileName = u"c:\\items.txt"
urllib.urlretrieve(remoteFileName, localFileName)
download_file()
The code was used in my 'DSE Price Tracker' application in order to download the list of companies.


0 comments:
Post a Comment