Created
March 3, 2020 14:29
-
-
Save bwbroersma/64131c7bdfb14ce76d22011d3ca931c7 to your computer and use it in GitHub Desktop.
Drinkwaterkaart scrape
This file contains 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 | |
curl -sSfA '' --compressed 'https://drinkwaterkaart.nl/waar-kan-ik-gratis-water-tappen/' | grep wpgmaps_localize_marker_data | sed -r 's/^[^=]+=\s*(.*);$/\1/' | jq '.["8"]|to_entries|map(.value)' | |
# | jq 'map(select(.desc|contains("NS")))|length' | |
# If you just want the GPX: | |
# curl -sSfLA '' --compressed 'https://drive.google.com/uc?export=download&id=1a7XmXrY3nXfF20AEb-iuXJke9GvZLIaR' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment