This file contains hidden or 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
""" | |
MARC record parser supporting multiple formats (XML, MARC21 binary, JSON). | |
This script demonstrates how to use the pymarc library to parse MARC records | |
from various file formats and extract record identifiers. | |
""" | |
from pymarc import XmlHandler, parse_xml, MARCReader, JSONReader | |
import tarfile | |
import argparse |