Skip to content

Instantly share code, notes, and snippets.

@Wooble
Created April 12, 2017 12:38
Show Gist options
  • Save Wooble/bf45630cc63ae4d9bd7e9795906a919a to your computer and use it in GitHub Desktop.
Save Wooble/bf45630cc63ae4d9bd7e9795906a919a to your computer and use it in GitHub Desktop.
#! /usr/bin/env python
import csv
from pymarc import MARCReader
fin = open('./001000.mrc', 'rb').read()
reader = MARCReader(fin)
for idx, record in enumerate(reader):
print(idx, record.title())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment