Add script to download and generate the model

This commit is contained in:
Feufochmar 2019-11-06 12:34:49 +01:00
parent 76de56d601
commit 9978f80c0e
1 changed files with 11 additions and 0 deletions

11
extract.sh Executable file
View File

@ -0,0 +1,11 @@
#! /bin/sh
# download the dataset into the data directory
mkdir -p data
curl -o "./data/fr-esr-referentiel-geographique.csv" "https://data.enseignementsup-recherche.gouv.fr/explore/dataset/fr-esr-referentiel-geographique/download/?format=csv&timezone=Europe/Berlin&use_labels_for_header=true"
# Install the dependency
raco pkg install --skip-installed --auto csv-reading
# run the extraction script
racket extractor.rkt