2

I am using the OpenRefine client: https://github.com/opencultureconsulting/openrefine-client

I need to automate processes and for this I need to be able to extract/export OpenRefine transformation history (undo/redo) in JSON format from the client, however, the client does not have a command for it. Is there any way to extract that history from the client?

Or does anyone know a way to extract that history from python?

frankh07
  • 41
  • 4

1 Answers1

1

As far as I know extracting the OpenRefine project history is not part of the public API of openrefine-client (latest version checked v0.3.10).

But openrefine-client provides a method to perform arbitrary commands, as long as they are supported by the OpenRefine API. In your case that would be the get-operations command.

So I expect you can just do something like this in Python:

from google.refine import refine

server = refine.Refine('http://localhost:3333')

project_id = '1234567890123'
project = server.open_project(project_id)

operations = project.do_json('get-operations')
b2m
  • 529
  • 3
  • 11