Retrieving file

Automated Result Notifications: Getting Results Before the Official Announcement

· Pradeep Chandran M

Automation, Android / Termux, Node.js, Web Scraping, Telegram Bot

Results day is the same every semester. WhatsApp groups fill up with questions, rumors spread, and the moment the official email drops, thousands of students open the portal at the same time. The server crashes, and you get stuck staring at a blank screen refreshing for hours. I wanted to fix this for myself. What started as a quick Python script on my laptop eventually turned into a 24/7 setup running on an old Android phone. Most people don't notice the gap. Colleges almost never upload results and send the announcement circular at the exact same second. There is usually a 5 to 20 minute gap where the results are already live in the database, but nobody knows yet. If you catch that window, you can scrape the grades while the server has zero traffic, save everything, and notify people before the portal goes down. Running 24/7 on an Android Phone At first, I ran the monitoring script on my laptop. But keeping a laptop awake and plugged in all day wastes power. Cloud VPS instances were another option, but free tiers often sleep, and paying monthly for a simple script felt unnecessary. Then I realized I had an old Android phone in a drawer. An Android phone is actually great for this: Low power: It uses only 2 to 3 watts. Built-in battery: If the power cuts out at home, the phone keeps running without rebooting. Always connected: It stays on home Wi-Fi and can fall back to mobile data. Hardware access: You can directly trigger the speaker, vibration motor, torch, and Android system intents. I installed Termux, set up Node.js and MongoDB, and left the phone running 24/7 on port 3213. Checking the Portal Without False Alarms The phone runs a loop every 25 seconds (setInterval(checkResult, 25 1000)). Just checking if the login page returns HTTP 200 does not work. If the college changes the login page design or puts up a maintenance notice, that returns 200 too. So the script does two checks: 1. Logs in automatically: Using fetch-cookie and node-fetch, it logs into a…

All journal entries