carleton-pathways/bot

Parse section information

Closed this issue · 0 comments

Take in the subject title, and return a dictionary with four keys, faculty, course_code, section, tut_id.
*could change in future.

Example:

Screen Shot 2023-05-01 at 11 35 10 AM

would become:

{
"faculty": "COMP",
"course_code": "1805",
"section": "A",
"tut_id": "2"
}

*Note, some courses don't have a tut_id, in that case set tut_id equal to null