HarvardOpenData / course-catalog

Turning Harvard's PDF course catalog into easily-digestible data.
MIT License
4 stars 2 forks source link

Make a more advanced data structure for schedules #2

Open hathix opened 6 years ago

hathix commented 6 years ago

E.g. "MW 1000-1059" should become something like:

Monday: {start:1000, end:1059},
Tuesday: {},
Wednesday: {start:1000, end:1059},
Thursday: {},
Friday: {}

Oh, also convert times to military time (i think they already are)

hathix commented 6 years ago

We had some good code to pull this out earlier. The hardest part is extracting the pieces with a regex.