I have the following web address:
dls = \"http://www.muellerindustries.com/uploads/pdf/UW SPD0114.xls\"
I tried to download the file:
I suggest using requests:
import requests dls = "http://www.muellerindustries.com/uploads/pdf/UW SPD0114.xls" resp = requests.get(dls) output = open('test.xls', 'wb') output.write(resp.content) output.close()
To get requests installed:
pip install requests