易采站长站,站长之家为您整理了Python实现超星学习通签到(学习记录贴)——(4月1日更新的相关内容。
def __call__(self, *args, **kwargs):
def __call__(self, *args, **kwargs):
global cookie, uid
cookie = self.Cookie_get()
uid = cookie['UID'] print(uid)
self.Course_get()
while True:
try:
for i in range(index):
time.sleep(15)
condition = self.Sign(course_data[i]['courseid'], course_data[i]['classid'])
if condition:
pass
else:
print('课程:', course_data[i]['name'], '未查询到签到活动')
except Exception as e:
print("error", e)
if __name__ == '__main__':
username = input("请输入账号:n>")
password = input("请输入密码:n>")
Generator = Operate(username, password)
Generator()
作者:Full stack.
联系客服