Last active
June 9, 2018 23:36
-
-
Save hkamran80/9d01de3330a618cb9f571e98bf8c17c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sl | |
from getpass import getpass | |
schoolloop_subdomain = input("Subdomain: ") | |
schoolloop_username = input("Username: ") | |
schoolloop_password = getpass() | |
s2 = login(schoolloop_subdomain, schoolloop_username, schoolloop_password) | |
homework = sl.get_homework(s2) | |
for h in homework: | |
if h[4] == 1: | |
print(h[0] + " in " + h[1] + " due TODAY!" ) | |
elif h[4] == 2: | |
print(h[0] + " in " + h[1] + " due TOMORROW!") | |
elif h[4] == 0: | |
print(h[0] + " in " + h[1] + " due " + h[2]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment