Created
April 7, 2018 23:04
-
-
Save woohooyeah/fb8bc9a74c38bf43dd908090e2c3e8f6 to your computer and use it in GitHub Desktop.
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
| #!/bin/bash | |
| mkdir -p Amsterdam | |
| cd Amsterdam | |
| rm -f {Activiteiten,EtenDrinken,Evenementen,Festivals,MuseaGalleries,Shoppen,Tentoonstellingen,Theater,UitInAmsterdam}.json | |
| wget http://open.data.amsterdam.nl/Activiteiten.json | |
| wget http://open.data.amsterdam.nl/EtenDrinken.json | |
| wget http://open.data.amsterdam.nl/Evenementen.json | |
| wget http://open.data.amsterdam.nl/Festivals.json | |
| wget http://open.data.amsterdam.nl/MuseaGalleries.json | |
| wget http://open.data.amsterdam.nl/Shoppen.json | |
| wget http://open.data.amsterdam.nl/Tentoonstellingen.json | |
| wget http://open.data.amsterdam.nl/Theater.json | |
| wget http://open.data.amsterdam.nl/UitInAmsterdam.json | |
| mongoimport --db Amsterdam --collection Activiteiten --drop --file Activiteiten.json --jsonArray | |
| mongoimport --db Amsterdam --collection EtenDrinken --drop --file EtenDrinken.json --jsonArray | |
| mongoimport --db Amsterdam --collection Evenementen --drop --file Evenementen.json --jsonArray | |
| mongoimport --db Amsterdam --collection Festivals --drop --file Festivals.json --jsonArray | |
| mongoimport --db Amsterdam --collection MuseaGalleries --drop --file MuseaGalleries.json --jsonArray | |
| mongoimport --db Amsterdam --collection Shoppen --drop --file Shoppen.json --jsonArray | |
| mongoimport --db Amsterdam --collection Tentoonstellingen --drop --file Tentoonstellingen.json --jsonArray | |
| mongoimport --db Amsterdam --collection Theater --drop --file Theater.json --jsonArray | |
| mongoimport --db Amsterdam --collection UitInAmsterdam --drop --file UitInAmsterdam.json --jsonArray |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment