In [2]:
import requests
print ("downloading with requests")
url = 'http://www.shibor.org/shibor/web/html/downLoad.html?nameNew=Historical_Shibor_Data_2018_5.xls&nameOld=Shibor%CA%FD%BE%DD2018_5.xls&shiborSrc=http%3A%2F%2Fwww.shibor.org%2Fshibor%2F&downLoadPath=data'
r = requests.get(url)
print(r)
with open("test.xls", "wb") as code:
code.write(r.content)
In [5]:
import urllib
url = 'http://www.shibor.org/shibor/web/html/downLoad.html?nameNew=Historical_Shibor_Data_2018_5.xls&nameOld=Shibor%CA%FD%BE%DD2018_5.xls&shiborSrc=http%3A%2F%2Fwww.shibor.org%2Fshibor%2F&downLoadPath=data'
urllib.request(url, "test2.xls")
In [ ]: