Skip to content

Instantly share code, notes, and snippets.

@JonathanReeve
Created June 7, 2019 16:40
Show Gist options
  • Save JonathanReeve/3a6f6f364028231c018458e48d734519 to your computer and use it in GitHub Desktop.
Save JonathanReeve/3a6f6f364028231c018458e48d734519 to your computer and use it in GitHub Desktop.
Getting data from a COPAC XML record
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