I try to download a tgz file from an url. If I use the link and copy it to Firefox, a download-as dialog occures and I can download the data.
If I use this code, I get an urlopen error
:
urllib.request.urlretrieve(HOUSING_URL, "C:/HomeC/data.tgz")
Does anybody know, what I'm doing wrong? Again: The link, stored in HOUSING_URL is correct and working in a browser. There are also no mistakes by typing it, as I copy the path directly from the "Watch window" in Visual Studio