问题标签 [ons-api]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - 从 ONS 开放地理门户自动获取最新版本的 Shapefile
我正在尝试在 Python 中自动化数据管道。
目前,我从以下位置手动下载地方当局地区英国 BUC shapefile的最新版本:https ://geoportal.statistics.gov.uk/datasets/local-authority-districts-december-2020-uk-buc?geometry=-39.021% 2C51.099%2C34.148%2C59.780并用 Geopandas 打开它。
我可以使用以下方法通过 API Explorer 获得相同的 shapefile:
我找不到上述 api 的版本,它总是会下载 shapefile 的最新版本,而不是 2020 年 12 月的版本。
有没有办法确保我始终下载最新版本?
谢谢