<reponame>bquinn/python-sportsml<filename>tools/parser.py
#!/usr/bin/env python

import argparse
from SportsML import SportsMLParser

if __name__ == '__main__':
    parser = argparse.ArgumentParser(description='Load SportsML instance file')
    parser.add_argument('filename', help='file to be loaded')
    args = parser.parse_args()

    parser = SportsMLParser(args.filename)

    sports_content = parser.getSportsContent()
    print(sports_content.to_json())

#!/usr/bin/env python

import argparse
from SportsML import SportsMLParser

if __name__ == '__main__':
    parser = argparse.ArgumentParser(description='Load SportsML instance file')
    parser.add_argument('filename', help='file to be loaded')
    args = parser.parse_args()

    parser = SportsMLParser(args.filename)

    sports_content = parser.getSportsContent()
    print(sports_content.to_json())
#!/usr/bin/env python