Skip to content

Python script for exporting metadata from Omeka to a CSV file via the Omeka API.

License

Notifications You must be signed in to change notification settings

rtwilson/PythonOmekaApiToCsv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Omeka API to CSV Script

This repo includes a Python script which allows users to generate CSV files of the metadata in their Omeka installations. It will retreive the metadata for items, collections, element sets, elements, files, tags, exhibits, and exhibit pages. However, it does not retreive the files themselves. Only the metadata associated with them.

Instructions

Download the ZIP of the the script from above, or from here

(Alternatively, you can clone this repository.)

Unzip the package somewhere on your local computer.

Open a command-line interface, and navigate to the newly created directory (/PythonOmekaApiToCsv).

Execute the script by entering the following command:

python omekacsv.py

You will now be prompted to enter your Omeka API endpoint

At this point, you are prompted to enter an Omeka API key. If you are using an API key to export non-public material, enter it now. If all of your materials are public, or you only want materials that are public, you may skip this step.

The script will now generate a series of CSV files for each of your resource types within the directory (/PythonOmekaApiToCsv)

Attribution

This script is based on the omekacsv.py which is mantained and was originally developed by Caleb McDaniel, http://wcm1.web.rice.edu. Original code can be found at https://github.com/wcaleb/omekadd

This script, as with Caleb's, imports the OmekaClient class from omekaclient.py, which is included in the repo. The development repo for the Omeka Client is maintained by Jim Safley, who wrote the original client.

About

Python script for exporting metadata from Omeka to a CSV file via the Omeka API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%