danielabar / gis-lookup

Lookup GIS (Guaranteed Income Supplement - Canada) amount by income and marital status
2 stars 1 forks source link

Automate data update #4

Open danielabar opened 5 years ago

danielabar commented 5 years ago

Currently have to manually download csv files from open canada. Enhance the process so it auto downloads, something like this:

Start at metadata https://open.canada.ca/data/en/dataset/dfa4daf1-669e-4514-82cd-982f27707ed0

Then follow each resources array entry, download url property.

paintedbicycle commented 4 years ago

This is a great idea. Not sure exactly how to do it - might be part of a build process for this repo? (i.e rather than an API call at runtime?). Would at least make it easier for you to republish each quarter and yet not rely on access to the Canada.ca site from the an app that consumes this package?

danielabar commented 4 years ago

I was thinking about a script that would automate all the steps currently outlined in the Maintenance section of readme. And then having a scripts entry in package.json so it could be run something like npm run data-update. So would still be some manual effort to kick it off, but a lot less than current.

Some complications could be: