Skip to content

Instantly share code, notes, and snippets.

@hkamran80
Last active June 9, 2018 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hkamran80/9d01de3330a618cb9f571e98bf8c17c3 to your computer and use it in GitHub Desktop.
Save hkamran80/9d01de3330a618cb9f571e98bf8c17c3 to your computer and use it in GitHub Desktop.
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