Skip to content

RadioFreeAsia/nuclia-loader

Repository files navigation

This custom loader will take a json output created from plone's 'exportimport' plugin and load data into a Nuclea database via it's REST API.

Install

create python virtual environment in this directory:

python3 -m venv venv

install required python packages:

./venv/bin/pip install -r requirements.txt

Configure

create a file called 'keys_config.py' in this directory, and add your api key and account id.

API_KEY = "API Key from Nuclia"
Account_UID = "ACCOUNT UID FROM NUCLIA"

don't check this file into source control because it's private info.

Run

/venv/bin/python loader.py <json file>

a sample plone export is in ./data/sample.json with a few items.

./venv/bin/python loader.py data/sample.json

About

Loading metadata into nuclia for search

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages