I have the following web address:
dls = "http://www.muellerindustries.com/uploads/pdf/UW SPD0114.xls"
I tried to download the file:
urllib2.urlopen(dls, "test.xls")
A file called test.xls did this, but it is clearly an html file. If I opened the html file in firefox, it opened the excel file, but if I opened the file in excel, it was definitely not the excel file I was looking for.
If I have a web address like the above, how do I make python load the excel file as an excel file?
source share