Skip to content

Instantly share code, notes, and snippets.

@breyten
Created March 15, 2016 13:54
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 breyten/41a1b24caab524313925 to your computer and use it in GitHub Desktop.
Save breyten/41a1b24caab524313925 to your computer and use it in GitHub Desktop.
Get amsterdam datapoints
#!/bin/bash
for SET in `wget -q -O - 'https://api.datapunt.amsterdam.nl/gebieden/' |jq '.[]' |sed -e 's/"//g;'`; do
echo $SET
for PART in `wget -q -O - $SET |jq '.results[] |._links.self.href' |sed -e 's/"//g;'`; do
echo "* $PART"
wget -q -x $PART
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment