Skip to content

Instantly share code, notes, and snippets.

@bwbroersma
Created March 3, 2020 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bwbroersma/64131c7bdfb14ce76d22011d3ca931c7 to your computer and use it in GitHub Desktop.
Save bwbroersma/64131c7bdfb14ce76d22011d3ca931c7 to your computer and use it in GitHub Desktop.
Drinkwaterkaart scrape
#!/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