When attempting to download the zip file for 2016 household projections from nrscotland (link), the code previously downloaded a 403 error page and cached that in place of the 2016-house-proj-detailed-counc-princ.zip file. This caused downstream errors in the microsimulation package as it was expecting a zip file, but encountering a html file in disguise.
I defined a user-agent based (below) on linux and firefox to pass to the requests.get function which seems to fix the problem.
When attempting to download the zip file for 2016 household projections from nrscotland (link), the code previously downloaded a 403 error page and cached that in place of the
2016-house-proj-detailed-counc-princ.zip
file. This caused downstream errors in the microsimulation package as it was expecting a zip file, but encountering a html file in disguise.I defined a user-agent based (below) on linux and firefox to pass to the requests.get function which seems to fix the problem.