/ilms

TA utilities for NTHU iLMS (http://lms.nthu.edu.tw)

Primary LanguagePythonMIT LicenseMIT

iLMS TA script

Login

Using username and password

from ilms import ILMS
ilms = ILMS.login('108062999', 'pa55w0rd', course=40596)

course is the courseID which appears on the URL of the course page.

Using an existing session

import requests
from ilms import ILMS
s = requests.Session()
s.cookies['PHPSESSID'] = 'qF7P5Zj80sONYH5KQmVwR1Hk8t'
ilms = ILMS(s, course=40596)

You can get the PHPSESSID cookie from browser developer tools.

As a security note, plain text PHPSESSIDs are as bad as plain text passwords.

Features

  • Set homework score
  • Send emails one by one