Skip to content

Instantly share code, notes, and snippets.

@TyrfingMjolnir
Last active September 12, 2020 07:27
Show Gist options
  • Save TyrfingMjolnir/562440ad0f35cc413adc760432643d5a to your computer and use it in GitHub Desktop.
Save TyrfingMjolnir/562440ad0f35cc413adc760432643d5a to your computer and use it in GitHub Desktop.
for i in {1..9869}
do
# curl -kL "https://hotell.difi.no/api/json/brreg/enhetsregisteret?page=${i}" >> /tmp/brreg.json
curl -kL "https://hotell.difi.no/api/xml/brreg/enhetsregisteret?page=${i}" >> /tmp/brreg.json
# curl -kL "https://hotell.difi.no/api/csv/brreg/enhetsregisteret?page=${i}" >> /tmp/brreg.json
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment