/pyoaiharvester

Simple command line oai-pmh harvester written in Python.

Primary LanguagePythonMIT LicenseMIT

pyoaiharvester

Simple command line oai-pmh harvester written in Python.

Usage

Harvest a repository to a file named untsw.dc.xml

python pyoaiharvest.py -l http://digital.library.unt.edu/explore/collections/UNTSW/oai/ -o untsw.dc.xml

Harvest the untl metadata format to a file named untsw.untl.xml

python pyoaiharvest.py -l http://digital.library.unt.edu/explore/collections/UNTSW/oai/ -o untsw.untl.xml -m untl

Options

-f
--from
     harvest records from this date, format: yyyy-mm-dd

-l
--link
     URL of repository

-m
--mdprefix
     use the specified metadata format, default="oai_dc"

-o
--filename
     write repository to file

-s
--setName
     harvest the specified set

-u
--until
     harvest records until this date, format: yyyy-mm-dd