- agricultural-land-classification-collection
- air-quality-management-area-collection
- ancient-woodland-collection
- archaeological-priority-area-collection
- area-of-outstanding-natural-beauty-collection
- article-4-direction-collection
- asset-of-community-value-collection
- border-collection
- brownfield-land-collection
- brownfield-site-collection
- built-up-area-collection
- central-activities-zone-collection
- community-infrastructure-levy-schedule-collection
- conservation-area-collection
- design-code-collection
- developer-contributions-collection
- development-plan-collection
- development-plan-document-collection
- development-plan-type-collection
- document-collection
- educational-establishment-collection
- educational-establishments-data-collection
- flood-risk-zone-collection
- flood-storage-area-collection
- green-belt-collection
- heritage-coast-collection
- historic-england-collection
- infrastructure-funding-statement-collection
- infrastructure-project-collection
- legislation-collection
- listed-building-collection
- local-area-requirements-collection
- local-authority-district-collection
- local-nature-reserve-collection
- local-plan-collection
- local-planning-authority-collection
- local-resilience-forum-boundary-collection
- national-nature-reserve-collection
- national-park-collection
- nature-improvement-area-collection
- neighbourhood-plan-collection
- organisation-collection
- ownership-status-collection
- parish-collection
- planning-application-collection
- planning-condition-collection
- planning-permission-status-collection
- planning-permission-type-collection
- ramsar-collection
- region-collection
- site-category-collection
- site-of-special-scientific-interest-collection
- special-area-of-conservation-collection
- special-protection-area-collection
- title-boundary-collection
- transport-access-node-collection
- tree-preservation-order-collection
- update-collection-files
- ward-collection
Last active
July 5, 2025 17:03
-
-
Save psd/0a34d9952f97085f25fec40d3a288611 to your computer and use it in GitHub Desktop.
Digital Land collected data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| endpoint.csv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| let page=0 | |
| organisation=digital-land | |
| while : | |
| do | |
| let page=page+1 | |
| sleep 0.5 | |
| chunk=$( | |
| curl -qs "https://api.github.com/users/$organisation/repos?per_page=100&page=$page" | | |
| jq '.[] | .name' | |
| ) | |
| if [ -z "$chunk" ] | |
| then | |
| break | |
| fi | |
| echo "$chunk" | |
| done | | |
| grep -- '-collection' | | |
| sed -e 's/"//g' | | |
| while read repo | |
| do | |
| if grep -Fq "[$repo]" endpoint.md | |
| then | |
| e="**" | |
| else | |
| e="" | |
| fi | |
| echo "* $e[$repo](https://github.com/digital-land/$repo)$e" | |
| done | |
- ancient-woodland-collection
- article-4-direction-collection
- conservation-area-collection
- design-code-collection
- developer-contributions-collection
- flood-risk-zone-collection
- green-belt-collection
- historic-england-collection
- infrastructure-project-collection
- legislation-collection
- listed-building-collection
- organisation-collection
- planning-condition-data
- site-category-collection
- tree-preservation-order-collection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| csvcut -c "endpoint_url,end_date" | | |
| grep -v ',$' | | |
| grep 'https://raw.githubusercontent.com/digital-land/' | | |
| grep -v 'https://raw.githubusercontent.com/digital-land/conservation-area-data/' | | |
| sed -e 's/^.*raw.githubusercontent.com\/digital-land\/\([^\/]*\).*$/\1/' | | |
| sort -u | | |
| while read repo | |
| do | |
| echo "* [$repo](https://github.com/digital-land/$repo)" | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| all: endpoint.md collection.md | |
| collection.md: collection.sh endpoint.md | |
| bash collection.sh > $@ | |
| endpoint.md: endpoint.csv endpoint.sh | |
| bash endpoint.sh < $< > $@ | |
| endpoint.csv: | |
| curl -Lqs 'https://datasette.planning.data.gov.uk/digital-land/endpoint.csv?_stream=on&_size=max' > $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment