How to loop over all records ?
My script stops after 50 records.
How to get the number of records as well ?
from oaipmh.client import Client
from oaipmh.metadata import MetadataRegistry, oai_dc_reader
URL = 'http://ws.pangaea.de/oai/provider?set=project4173'
registry = MetadataRegistry()
registry.registerReader('oai_dc', oai_dc_reader)
client = Client(URL, registry)
record = client.listRecords(metadataPrefix='oai_dc')
for record in client.listRecords(metadataPrefix='oai_dc'):
print(record)
There are 1501 records in the project.
$ oai-harvest --limit 10000 -p dif --set project4173 http://ws.pangaea.de/oai/provider
This command harvests correctly all metadata from the 1501 records.
I would like to do this from oaipmh to save them after some reformating into a json file.
Any help welcomed.
How to loop over all records ?
My script stops after 50 records.
How to get the number of records as well ?
There are 1501 records in the project.
This command harvests correctly all metadata from the 1501 records.
I would like to do this from oaipmh to save them after some reformating into a json file.
Any help welcomed.