# 获取调课、改课通知例子

from zfnew import GetInfo, Login

base_url = '学校教务系统的主页url'

lgn = Login(base_url=base_url)
lgn.login('账号', '密码')
cookies = lgn.cookies  # cookies获取方法
person = GetInfo(base_url=base_url, cookies=cookies)
message = person.get_message()
print(message)

[((7, 6, 7, 30), 'zfnew.Login', 'Login', (), '', False, 'from zfnew import GetInfo, Login\n'), ((10, 9, 10, 52), 'zfnew.GetInfo', 'GetInfo', (), '', False, 'from zfnew import GetInfo, Login\n')]