Skip to content

dataesr/harvest-sudoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

harvest-sudoc

Harvesting the sudoc

How to use it ?

  1. Clone the repo

git clone https://github.com/dataesr/harvest-sudoc.git

  1. Enter the repo

cd harvest-sudoc

  1. Build the docker image

make docker-build

  1. Start docker image

make start

  1. Start the harvesting

curl -X POST -H 'Content-Type: application/json' -d '{"id_refs": ["02825354X", "242241344", "183975154", "059389451"]}' 'http://localhost:5004/harvest'

API

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.

Release

To create a new release:

make release VERSION=X.X.X