theyworkforyou / quien_nos_representa

https://theyworkforyou.github.io/quien_nos_representa/
0 stars 0 forks source link

Update the CSVs from YNR regularly #11

Open chrismytton opened 8 years ago

chrismytton commented 8 years ago

The YNR CSVs are updated every 15 minutes. It would be good to have a process that polled for changes and when it detected a change it updated the CSVs in this repo, which would in turn trigger a rebuild of the site.

tmtmtmtm commented 8 years ago

How easy would it be to add some sort of webhook-esque functionality to YNR so we don't need to just keep re-polling it?

chrismytton commented 8 years ago

AFAICT the script which generates the CSVs, which is run once every 15 minutes in a cron job, recreates the CSVs from scratch each time. So I guess we could run a webhook at the end of that script, but it would always run, whether the CSVs had changed or not.