Tag Archives: Python

CKAN Revision Feed

CKAN provides an Atom feed to get updates on edited and created datasets and resources. By default, the feed can be found at {portal-url}/revision/list?format=atom.

In the Python code example I accessed the feed using the feedparser package. The titles of the feed entries are of the following form:

r863bfa65-bfed-40b1-b6ee-e78275be3283 [ra2014:updated:resources]: REST API: Update Objekt ra2014

I used the information within the square brackets: ra2014 is the internal dataset name, updated tells you if the dataset is created or updated and the third value, resources, appears only if a resource of the dataset has been edited.

Advertisements