Created
June 7, 2019 16:40
-
-
Save JonathanReeve/3a6f6f364028231c018458e48d734519 to your computer and use it in GitHub Desktop.
Getting data from a COPAC XML record
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
recordsList = parsedXml['modsCollection']['mods'] | |
years = [] | |
for record in recordsList: | |
originList = record['originInfo'] | |
for origin in originList: | |
if 'dateIssued' in origin: | |
years.append(origin['dateIssued']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment