Skip to content

Instantly share code, notes, and snippets.

@altheadotspace
altheadotspace / csv2json.py
Created April 29, 2012 05:19 — forked from sharonw/csv2json.py
Translate MLB team schedule from csv into json
# Go to http://mlb.mlb.com/mlb/schedule/team_by_team.jsp
# Click on Regular Schedule
# Scroll down and click on Downloadable schedule
# e.g. http://colorado.rockies.mlb.com/schedule/downloadable.jsp?c_id=col&year=2012
# Download Full Season Schedule
# Suggestions for future enhancements:
# TODO: come up with a column schema way of representing the csv
# (referring to column names is more elegant than num indices)
# TODO: take file names as command line arguments