Fetch your KTU semester grade card from the terminal without repeatedly refreshing an overloaded website.
Automatically retry fetching results when the KTU portal returns server timeout errors during peak release times.
Save your grade card as a formatted HTML file you can open and view in any browser.
Check results for any semester by supplying its numeric semester ID.
| prawmathean/fkturesults | 100/awesome-machine-learning | adam-s/car-diagnosis | |
|---|---|---|---|
| Stars | 8 | 8 | 8 |
| Language | Python | Python | Python |
| Last pushed | — | 2024-08-07 | — |
| Maintenance | — | Stale | — |
| Setup difficulty | easy | easy | moderate |
| Complexity | 2/5 | 1/5 | 3/5 |
| Audience | general | developer | researcher |
Figures from each repo's GitHub metadata at analysis time.
Requires Python 3.7 or newer and a valid KTU student portal login.
FKtuResults is a Python command line script for students at KTU, a university whose result portal is known for timing out and returning server errors. Instead of refreshing the slow website by hand, you run this script in a terminal and it logs into the portal for you, fetches your semester grade card, and prints it as a clean table right there in the console. You run one script and it asks for three things: your KTU username, which is usually your register number, your password, entered as hidden input so it never shows on screen, and the semester ID for the results you want to see. The semester ID is a number the portal uses internally, and the README explains how to find it by logging into the portal in a browser and checking the dropdown next to each semester's name. Because the KTU portal frequently returns 504 Gateway Timeout errors, especially right when results are released and everyone is checking at once, the script automatically retries the request up to one hundred times with randomised delays between attempts. You just leave it running and it keeps trying until the portal responds. Once it succeeds, the results are both printed to the terminal and saved as a full HTML file named after your username and semester, which you can open in a browser for a nicely formatted view. To use it you need Python 3.7 or newer, and after cloning the repository you install three packages: requests for handling the login and HTTP sessions, beautifulsoup4 for pulling the CSRF token and grades table out of the returned HTML, and urllib3 to quiet SSL warnings that come from the portal's self signed certificate. Credentials are never written to disk, they only exist in memory while the script runs. The project includes a troubleshooting table covering common failures like a missing CSRF token or an expired session, along with suggested fixes for each.
A Python script that logs into the KTU university result portal for you and fetches your semester grade card, retrying automatically when the slow portal times out.
Mainly Python. The stack also includes Python, requests, BeautifulSoup4.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly general.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.