We are going to use Sickle (https://sickle.readthedocs.io/en/latest/tutorial.html) to harvest the OAi-PMH interface of the Austrian National Library.

In [1]:

    from sickle import Sickle
    from lxml import etree

The OAI-PMH base url is: https://obv-at-oenb.alma.exlibrisgroup.com/view/oai/43ACC_ONB/request.

In [2]:

    sickle = Sickle('https://obv-at-oenb.alma.exlibrisgroup.com/view/oai/43ACC_ONB/request')

First, list all available OAI-PMH Sets of the Austrian National Library

In [3]:

    oai_sets = sickle.ListSets()
    for oai_set in oai_sets:
        print('setSpec value for selective harvesting: ' + oai_set.setSpec)
        print('Name of the set (setName): ' + oai_set.setName + '\n')

    setSpec value for selective harvesting: PAPYRUSDC
    Name of the set (setName): Papyri records in DC simple

    setSpec value for selective harvesting: FULLMARC
    Name of the set (setName): Complete set of ONB records in MARC

    setSpec value for selective harvesting: HANNAMARC
    Name of the set (setName): HANNA records in MARC

    setSpec value for selective harvesting: ESPERANTOMARC
    Name of the set (setName): Esperanto records in MARC

    setSpec value for selective harvesting: ESPERANTODC
    Name of the set (setName): Esperanto Records in DC simple

    setSpec value for selective harvesting: PAPYRUSMARC
    Name of the set (setName): Papyri records in MARC

    setSpec value for selective harvesting: HANNADC
    Name of the set (setName): HANNA records in DC simple

    setSpec value for selective harvesting: ABODC
    Name of the set (setName): Austrian Books Online in DC simple

    setSpec value for selective harvesting: ARIADNEDC
    Name of the set (setName): Ariadne records in DC simple

    setSpec value for selective harvesting: ARIADNEMARC
    Name of the set (setName): Ariadne records in MARC

    setSpec value for selective harvesting: MAPMARC
    Name of the set (setName): Maps and Globes records in MARC

    setSpec value for selective harvesting: FULLDC
    Name of the set (setName): Complete set of ONB records in DC simple

    setSpec value for selective harvesting: MAPDC
    Name of the set (setName): Maps and Globes records in DC simple

    setSpec value for selective harvesting: ABOMARC
    Name of the set (setName): Austrian Books Online in MARC

    setSpec value for selective harvesting: OAIBIBLIOA
    Name of the set (setName): Austrian Bibliography A

    setSpec value for selective harvesting: MUSHANDC
    Name of the set (setName): Musikhandschriften in DC

    setSpec value for selective harvesting: MUSHANMARC
    Name of the set (setName): Music Manuscripts

    setSpec value for selective harvesting: CERLMARC
    Name of the set (setName): Old prints and manuscripts for CERL portal

Now, list all available metadataformats.

In [4]:

    oai_formats = sickle.ListMetadataFormats()
    for oai_format in oai_formats:
        print(oai_format.metadataPrefix)

    mods
    oai_dc
    oai_qdc
    marc21

List all possible dissertations, beginning from 2019-04-01.

In [5]:

    namespaces = {
        'oai': 'http://www.openarchives.org/OAI/2.0/',
        'oai_dc': 'http://www.openarchives.org/OAI/2.0/oai_dc/',
        'dc': 'http://purl.org/dc/elements/1.1/'
    }

    count=0

    for record in sickle.ListRecords(**{'metadataPrefix': 'oai_dc', 'set': 'FULLDC', 'from': '2019-04-30'}):

        if ('Dissertation' in record.raw):
            #print('-' + record.raw + '-')
            tree = etree.ElementTree(record.xml)
            result = tree.xpath('/oai:record/oai:metadata/oai_dc:dc/dc:title/text()', namespaces=namespaces)
            if (result):
                count += 1
                author = tree.xpath('/oai:record/oai:metadata/oai_dc:dc/dc:contributor/text()', namespaces=namespaces)
                print(str(count) + ": " + result[0])
                if author:
                    print(author[0])

    1: Geschlechterdifferenzen in der Bildungssozialisation revisited ein Plädoyer für eine ganzheitliche Herangehensweise in Forschung, Intervention und Implementierung
    Jöstl, Gregoraut
    2: Alternative Vermittler, Identifizierung und Analyse journalistischer Vermittlungsleistungen im Internet
    Barrantes Leon, Eloy Andreasaut
    3: Von "re-creation" bis "glorification" - zur musikalischen Inszenierung des historischen Broadway-Sounds in amerikanischen Musicals des späten 20. Jahrhunderts
    Zagozdzon, Agnieszka1979-(DE-588)105018615Xaut
    4: Students' interactions and experiences in classroom activities that aim for co-creativity?
    Schmoelz, Alexanderaut
    5: Ansuchen um Tausch von Dissertationen
    NationalbibliothekWien(DE-588)19913-8aut
    6: Verkehrs- und Mobilitätserhebungen Einführung in Gender Planning
    Knoll, Bente1974-(DE-588)132826380aut
    7: Doctoral theses at NTNU
    Norges teknisk-naturvitenskapelige universitet(DE-588)5180253-3aut
    8: Frömmigkeit und Wissenschaft Ernst Troeltsch und sein theologisches Programm
    Apfelbacher, Karl-Ernst1940-2015(DE-588)131594974aut
    9: Versuche Über elektrolytische Oxydation und Reduktion
    Beck, Jacobaut
    10: Beiträge zur Kenntnis der Metalle der Cergruppe
    Beck, Hansaut
    11: Über p-Leukanilin und dessen Derivate
    Beetz, Max1883-(DE-588)1160760799aut
    12: Museum Philologicum et historicum, complectens: I. Jsaaci Casauboni ac Satyrica Graecorum poesi ... II. Ejusdem quatuor epistolas ... II. Euripidae Cyclopene ... IV. Inscriptionem veterem graecam nuper ad urbem in Via Appia effossam ... V. Aegidii Strauchii Olympikon agona. VI. Joh. Lehmanni Dissertationem historicam de Serapiae Aegyptiorum Deo. Thomas Crenius conlegit (etc.)
    Crenius, Thomas1648-1728(DE-588)100095089edt
    13: <<Die>> Theologie des Leibes von Papst Johannes Paul II. philosophische und theologische Grundlagen
    Rimmel, Thomas Maria1964-(DE-588)1050990366aut
    14: Modeling of plasma rotation in tokamaks
    Martitsch, Andreas Frankaut
    15: Intelligent supporting technologies for the maintenance of product configuration systems
    Speiser-Reinfrank, Florianaut
    16: <<The>> microbiome of controlled built environments
    Mahnert, Alexanderaut
    17: Axiomatic description of Gröbner reduction
    Fürst, Christophaut
    18: Probes and potential drugs for lysosomal diseases and Alzheimer´s
    Thonhofer, Martin Simonaut
    19: Printed organic electrochemical transistors performance parameters and applications
    Hütter, Philippaut
    20: Gutachten über Dissertationen an der Universität Wien
    Höfler, Otto1901-1987(DE-588)118551914aut
    21: Gutachten über Dissertationen an der Universität München
    Höfler, Otto1901-1987(DE-588)118551914aut
    22: Stellungnahme zur Dissertation von Hermann Reichert
    Höfler, Otto1901-1987(DE-588)118551914aut
    23: Sisters - Cyborgs - Drags das Denken in Begriffspersonen der Gender Studies
    Mertlitsch, Kirstin(DE-588)1095570242aut
    24: Schriftwechsel zur Dissertation von Hermann Reichert
    Höfler, Otto1901-1987(DE-588)118551914aut
    25: <<Der>> Lektor und sein Autor vergleichende Fallstudien zum Suhrkamp Verlag
    Sprengel, Marja-Christine(DE-588)1111909636aut
    26: It's about time model-based mutation testing for synchronous and asynchronous timed systems = Modellbasiertes Mutationstesten von synchronen und asynchronen zeitkritischen Systemen
    Lorber, Florian Lukasaut
    27: Ribosomal proteins as translational regulators of PTC-readthrough in the context of Epidermolysis bullosa
    Brandl, Clemensaut
    28: Interferometric vibrometry for combustion dynamics
    Peterleithner, Johannesaut
    29: Development of an operation strategy for plug-in hybrid electric vehicles long-term prediction and adaptation based on past vehicle and driver data
    Kraus, Haraldaut
    30: "Uninteressiertes Weltinteresse" über die Ausbildung einer ästhetischen (Denk-)Haltung im Werk Hannah Arendts
    Pavlik, Jennifer1983-(DE-588)142151033aut
    31: New challenges in digital forensics online storage and anonymous communication
    Mulazzani, Martinaut
    32: <<The>> fish gut microbiome contributions to its characterization and potential applications
    Ghanbari, Mahdiaut
    33: Auxiliary master equation approach for correlated quantum impurity problems out of equilibrium
    Dorda, Antoniusaut
    34: Building with lines efficient 3D scene abstraction for the built environment
    Hofer, Manuelaut
    35: Condition monitoring of lithium iron phosphate batteries by a probabilistic and a sensor-based approach
    Gallien, Thomasaut
    36: Katholische Frauenbewegung in Deutschland 1945-1962 Politik, Geschlecht und Religiosität im Katholischen Deutschen Frauenbund
    Illemann, Regina1982-(DE-588)1120623863aut
    37: Fügetechnik im UHPC-Schalenbau
    Santner, Gerhardaut
    38: Stahlbauliche Tragfähigkeit, Betontragfähigkeit und Verformungsverhalten von Verankerungsringen im Druckrohrleitungsbau
    Ecker, Alexanderaut

In [ ]: