-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.py
More file actions
22 lines (20 loc) · 726 Bytes
/
client.py
File metadata and controls
22 lines (20 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from cnu_schedule import *
import time
if __name__ == "__main__":
# start = time.time()
schedule = CNUSchedule("Fall 2022", discipline="Computer Science")
print(len(schedule.courses))
for course in schedule.courses:
# if course.crn == '9298':
print(course)
# ratings = course.get_professor_ratings()
# print(f"Professor(s) Rating Stats: {ratings}")
# end = time.time()
# time_elapsed = end - start
# print(f"Parsed and found class in {time_elapsed} seconds.")
csv_reader_obj = schedule.get_csv()
# Print("CSV object returned and saved.")
schedule.update()
print("Updated.")
for course in schedule.courses:
print(course)