deutsche-digitale-bibliothek / ddblabs-ometha Goto Github PK
View Code? Open in Web Editor NEWA fast and resilient OAI PMH Harvester with TUI and CLI and support for automation.
License: GNU General Public License v3.0
A fast and resilient OAI PMH Harvester with TUI and CLI and support for automation.
License: GNU General Public License v3.0
Das Harvesten der OAI-Schnittstelle der Bayerische Staatsbibliothek (BSB) für MARC-Daten scheitert mit neueren Versionen von Ometha. Mit anderen OAI-Schnittstellen treten die u. g. Fehler nicht auf.
Mit z. B. Ometha 1.8.2 (Windows, exe) funktoniert das Harvesten der BSB-OAI-Schnittstelle.
Alle Beispielaufrufe verwenden die folgende Konfiguration:
BSB_m21.yaml
name: BSB_m21
baseurl: http://bdr.oai.bsb-muenchen.de/OAIHandler
metadataPrefix: MarcXchange
datengeber: BSB
set:
- all
fromdate: null
untildate: null
timeout: 4
outputfolder: BSB_m21
debug: false
lazy: false
numberofprocesses: 2
Der Aufruf ist jeweils
ometha conf -c BSB_m21.yaml
Ubuntu über SSH (Ometha 1.9.5) schläg fehl:
connectionpool.py 836 urlopen
retries = retries.increment(method, url, response=response, _pool=self)
retry.py 574 increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError:
HTTPConnectionPool(host='bdr.oai.bsb-muenchen.de', port=80): Max retries exceeded with url: /OAIHandler (Caused by ResponseError('too many 500 error responses'))
--------------------------------------------------------------------------------------------------------------------------
ometha 8 <module>
sys.exit(main())
__init__.py 252 main
session.get(baseurl, verify=False, timeout=(20, 80))
sessions.py 542 get
return self.request('GET', url, **kwargs)
sessions.py 529 request
resp = self.send(prep, **send_kwargs)
sessions.py 645 send
r = adapter.send(request, **kwargs)
adapters.py 510 send
raise RetryError(e, request=request)
requests.exceptions.RetryError:
HTTPConnectionPool(host='bdr.oai.bsb-muenchen.de', port=80): Max retries exceeded with url: /OAIHandler (Caused by ResponseError('too many 500 error responses'))
Ein entsprechender Aufruf mit Curl funktioniert und liefert die ersten Identifier:
curl -G -d "verb=ListIdentifiers" -d "metadataPrefix=MarcXchange" -d "set=all" http://bdr.oai.bsb-muenchen.de/OAIHandler
Der Aufruf mit Ometha 1.9.6 (exe) unter Windows schlägt ebenfalls fehl:
Traceback (most recent call last):
File "requests\adapters.py", line 489, in send
File "urllib3\connectionpool.py", line 878, in urlopen
File "urllib3\connectionpool.py", line 878, in urlopen
File "urllib3\connectionpool.py", line 878, in urlopen
[Previous line repeated 1 more time]
File "urllib3\connectionpool.py", line 868, in urlopen
File "urllib3\util\retry.py", line 592, in increment
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='bdr.oai.bsb-muenchen.de', port=80): Max retries exceeded with url: /OAIHandler (Caused by ResponseError('too many 500 error responses'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "run.py", line 3, in <module>
File "ometha\__init__.py", line 252, in main
File "requests\sessions.py", line 600, in get
File "requests\sessions.py", line 587, in request
File "requests\sessions.py", line 701, in send
File "requests\adapters.py", line 556, in send
requests.exceptions.RetryError: HTTPConnectionPool(host='bdr.oai.bsb-muenchen.de', port=80): Max retries exceeded with url: /OAIHandler (Caused by ResponseError('too many 500 error responses'))
[8092] Failed to execute script 'run' due to unhandled exception!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.