Harvesting the sudoc
- Clone the repo
git clone https://github.com/dataesr/harvest-sudoc.git
- Enter the repo
cd harvest-sudoc
- Build the docker image
make docker-build
- Start docker image
make start
- Start the harvesting
curl -X POST -H 'Content-Type: application/json' -d '{"id_refs": ["02825354X", "242241344", "183975154", "059389451"]}' 'http://localhost:5004/harvest'
endpoint | method | args | description |
---|---|---|---|
harvest | POST | id_refs [str, list] force_download [bool] |
This endpoint will download in ObjectStorage all the sudoc notices for the given id_refs given. If force_download is set to True , the notice will be downloaded even if already in DB. |
harvest_notices | POST | sudoc_ids [str, list] force_download [bool] |
This endpoint will download in ObjectStorage all the sudoc notices If force_download is set to True , the notice will be downloaded even if already in DB. |
To create a new release:
make release VERSION=X.X.X