Last active
September 12, 2020 07:27
-
-
Save TyrfingMjolnir/562440ad0f35cc413adc760432643d5a to your computer and use it in GitHub Desktop.
Download brreg; Source: https://hotell.difi.no/?dataset=brreg/enhetsregisteret, pull individual entities: https://hotell.difi.no/api/json/brreg/enhetsregisteret?query=<<orgnr>>
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
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