Skip to content

Instantly share code, notes, and snippets.

@lawlesst
Created September 28, 2010 16:29
Show Gist options
  • Save lawlesst/601312 to your computer and use it in GitHub Desktop.
Save lawlesst/601312 to your computer and use it in GitHub Desktop.
import sys
from pymarc import Record, MARCReader
reader = MARCReader(file(sys.argv[1]))
print "ALT LOOKUP, Provider, URL"
for rec in reader:
print "%s,LLMC Digital,%s" % (rec['001'].data, rec['856']['u']) #this assumes the url is in subfield u. Change if not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment