-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstudentgrades.py
28 lines (22 loc) · 998 Bytes
/
studentgrades.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from neubanner import banner
import pprint
##############################################################################
##############################################################################
if banner.login():
banner.termset('202110')
# known crn
sections = [ { 'crn' : '15177', 'section' : '02'}, { 'crn' : '13902', 'section' : '03'} ]
for section in sections:
print(section['crn'])
banner.crnset(section['crn'])
for student in banner.summaryclasslist():
print(student["name_lastfirst"])
banner.idset(banner.getxyz_studid(student["nuid"]))
termsdata = banner.studenttranscript()["terms"]
for term_data in termsdata:
if term_data["term"] == "Fall 2020 Semester":
for course in term_data["courses"]:
if course["course"] == "4500":
print(course["grade"])
else:
print("Login Error!")