datasets / publicbodies

A database of public bodies such as government departments, ministries etc.
http://publicbodies.org
MIT License
63 stars 26 forks source link

Replace data source for Italy, add automatic updates #147

Closed augusto-herrmann closed 2 years ago

augusto-herrmann commented 2 years ago

Fixes #132 by updating the data import script for Italy.

There are two datasets for that data:

I have checked that both datasets contain the same data, but use different schemas. I've decided to read the first one, but the second is kept commented in the file, just in case the first one becomes unavailable or outdated in the future, so it would be easier to replace.

The script is also added to the job run automatically by Github Actions, so it will be automatically updated once a week.

The id column has been changed to use the slug of the organization's name, instead of the internal id/abbreviation as it was before. Once we deal with #65 it shouldn't be hard to add the local Italian id to the new column.

Care to take a look, @traversaro?