albiruni 1.0.2 albiruni: ^1.0.2 copied to clipboard
A wrapper to easily access IIUM's Course Schedule website data.
A wrapper to easily access IIUM's Course Schedule website data.
Thank you @PlashSpeed-Aiman for the code foundation.
Features #
-
Get a list of subjects for ECONS kulliyyah for semester 1, 2020/2021 session:
// Create albiruni instance Albiruni albiruni = Albiruni(kulliyah: "ECONS", semester: 1, session: "2020/2021"); // Use methods available in the classes var subjects = await albiruni.fetch();
-
To filter/search for a particular subject, use the
course
parameter.fetch(course: "ECON 1140");
-
Be creative. Let say you want to filter the courses for third year subjects only.
fetch(course: "CCUB 3");
-
If you receiving input from user, it is recommended to use
.toAlbiruniFormat()
method.userInput = "ccub2621"; fetch(course: userInput.toAlbiruniFormat());
-
Get that
XMLHttpRequest
again? Urgh. Fear no more, setuseProxy
to true. (Implemented using cors-anywhere)fetch(course: "MCTE 3271", useProxy: true);
-
I think that's it for the basic usage of this library, of course, you can always discover more. You can drop your enquiries in issues if you have any.
More example can be found in /example
folder.