Naptan data URL has changed
Opened this issue · 0 comments
tenbob commented
I have been trying to use this, but it keeps crashing with multiple errors. I think the reason is that the URL for the Naptan data has moved.
In stops.py it is hard coded to read from http://naptan.app.dft.gov.uk/DataRequest/Naptan.ashx?format=csv
This data has since moved to https://beta-naptan.dft.gov.uk/Download/National/csv
I thought I could simply change the URL, but I must be doing it wrong. It still looks in the wrong place, finds ordinary HTML and reports zipfile.BadZipFile: File is not a zip file
. I don't know why it thinks it's a zip and not a csv.
Can anyone help me fix it, please?