[ckan-dev] How do you create a harvest source in code?

Peder Jakobsen | gmail pjakobsen at gmail.com
Mon Dec 31 19:00:16 UTC 2012


I'm writing a minimal harvester.  There is no need for a UI, or a
CkanCommand implementation such as
https://github.com/okfn/ckanext-harvest/blob/master/ckanext/harvest/commands/harvester.py

I'm looking for hints on what method to call in ckan.logic or
otherwise to add a harvesting source, and what parameters are required
(and why)?  This is not immediately obvious by studying
ckan.logic.get_action(action) which is called from
/ckanext/harvest/commands/harvester.py,   nor from studying the
harvester code in ckanext-pdeu.

In fact, there seems to be some documentation missing on how to
configure your own harvester after implementing the harvester
interface as described in
https://github.com/okfn/ckanext-harvest/blob/master/README.rst

Many thanks....and Happy New Year :)

Peder Jakobsen
Ottawa, Canada




More information about the ckan-dev mailing list