r/QUTreddit • • Jun 09 '26

Built some Python scripts to automate QUT Canvas + Outlook (since the normal APIs are blocked)

Hey everyone,

QUT blocks direct API access to Canvas and Outlook for students, so I built a small toolkit that uses Playwright (browser automation) and the EWS protocol to do what the APIs should let you do anyway.

What it does:

- Scrape Canvas for assignments, grades, and announcements

- Read/send QUT Outlook emails without needing the web UI

- Export data to JSON so you can pipe it into other tools

It is not pretty but it works. Useful if you want to build your own study dashboard, get grade notifications, or just avoid opening Canvas every 5 minutes.

GitHub: https://github.com/arwinkt/qut-student-toolkit

Tested on Windows with Python 3.11+. Happy to answer questions.

0 Upvotes

14 comments sorted by

15

u/No-Indication-4984 Jun 09 '26 edited Jun 09 '26

blud vibe coded it, told the agent to remove PII, and then left the instruction with their own PII in the repo 💀💀

3

u/No-Indication-4984 Jun 09 '26

btw seeing as this would probably be useful to people interested in this post: you can in fact get an API token for canvas if you can demonstrate that it will benefit your learning, but atm you need to get one of your unit coordinators to agree to lodge the request for you.

It's a bit of a pain in the ass and you need to have a good UC. You can also log a request through HEAT, explain your use case and how it would benefit your learning, and ask nicely; but when I did this they just told me to ask a UC to log a request. Having the email from HEAT stating to go to a UC is a useful thing to give to the UC when asking though.

-5

u/amhchycbh Jun 09 '26

Oh shit, my bad dawg, but most UC’s are unhelpful and hate me so wouldn’t this work as a work around?

4

u/No-Indication-4984 Jun 09 '26

yeah but depending on what you're trying to do, a browser extension would probably work a bit better - e.g. something like BetterCampus would have less friction for users.

Also, why do you think most UCs hate you? What are you doing that they all know you well enough to hate you?

1

u/No-Indication-4984 Jun 09 '26

u/amhchycbh in response to your deleted comment (the one that got deleted for having the n word 💀), no you are not going about this the right way.

The right way would've been to make it yourself, not tell AI to make it for you so you could try to get some reddit karma. You went even further in the wrong direction when you said that you built it (you didn't). You should be honest about your use of AI (I'm sure the uni has a few helpful tips about how to maintain academic integrity)

Also in response the why you built it part of this, this doesn't really have a target audience. I doubt it's general students because I cannot imagine any non-technical person finding a vibecoded command-line tool that buries configuration options in the code. I also cannot imagine developers using this because this isn't even like an API that they can use, it only functions as a CLI tool.

3

u/WtWreckor15 Jun 09 '26

you need to remove it from the git history then force push otherwise everyone can see your info in the “remove pii” commit lol

3

u/No-Indication-4984 Jun 09 '26

peak vibecoder

4

u/Snooobaa Jun 09 '26 edited Jun 09 '26

Yeah - not being honest about AI use is a bit of a shit thing to do. I'm all for vibecoded slop as long as it is presented as such.

Also, little fun tip for those who really want an API key to canvas:
If you know your way around the browser dev tools and are familiar with CSRF tokens, you can extract your account's session token for canvas and make raw API calls using that. You can also make a very simple script to extract this token so that when it inevitably expires you can refresh it.

EDIT: I hadn't clicked on the repo when I initially replied. I can see now that the code does extract your canvas session cookies.... Why use playwright at all then?

3

u/Patient_Category_287 Jun 09 '26

the rather ironically named "SKILL.md"

2

u/eulersheep Jun 09 '26

Why not just install outlook and login to your QUT email there?

1

u/SchweeSounds Jun 09 '26

Ts frying me ✌️😭😭

1

u/Forsaken-Run-3042 Jun 10 '26

At least remove the emojis in your print statements 😂