diff --git a/package.json b/package.json index 72ae195..769250e 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "description": "", "main": "index.js", "scripts": { - "run": "env NODE_EXTRA_CA_CERTS=pki/ca_intermediate_root_bundle.pem node download_json.js" + "run": "mkdir -p data && cd data && env NODE_EXTRA_CA_CERTS=pki/ca_intermediate_root_bundle.pem node download_json.js" }, "keywords": [], "author": "", diff --git a/readme.md b/readme.md index f0fa036..cb250d5 100644 --- a/readme.md +++ b/readme.md @@ -9,8 +9,13 @@ pnpm install ## correr ``` -pnpm run run download_json.js https://datos.gob.ar/data.json -# guarda en ./datos.gob.ar +# descargar portal datos.gob.ar +pnpm run run https://datos.gob.ar/data.json +# guarda en data/datos.gob.ar + +# descargar todos los portales conocidos +pnpm run run +# guarda en data/* ``` ## contenedor