diff --git a/courseinfo.py b/courseinfo.py index e19b875..42582f6 100644 --- a/courseinfo.py +++ b/courseinfo.py @@ -7,6 +7,7 @@ def get_course_info(id: str): link = f'https://artsci.calendar.utoronto.ca/course/{id}' html = requests.get(link).text name: str = re.findall(r'(?<=
).*(?=<)', html)[0] hours = '/'.join([str(int(it[:-1]) / 12) + it[-1] for it in hours.split('/')]) return {'id': id, 'name': name, 'link': link, 'hours': hours,