all projects
Automation2025

Student Loan Checker

Automated Python bot using Playwright to log into the Student Loans Company portal and retrieve loan balance information.

github.com/ZisisKostakakis/student-loan-checker
Student Loan Checker screenshot

01 Overview

Student Loan Checker is a Python bot built with Playwright that logs into the Student Loans Company (SLC) portal and retrieves loan information, replacing the manual process of checking balances and giving programmatic access to the data.

The bot handles the full authentication flow: email/password login, cookie consent, and two-factor authentication using secret codes. It then navigates the SLC portal and extracts current balance, salary repayments, direct repayments, interest added, and current interest rates.

It runs on Python 3.11+ and supports both headless and visible browser modes.

02 Key Features

Automated login with email and password authentication
Two-factor authentication (2FA) / secret code support
Extracts balance, salary repayments, direct repayments, interest added, and interest rates
Credential management via environment variables (.env file)
Error handling with detailed error messages
Automatic cookie consent management
Headless and visible browser modes
Programmatic API - can be imported and used as a module
Class-based architecture for easy extension
Documented setup instructions

03 Architecture

Bot Architecture

The SLCBot class encapsulates the entire Playwright browser session. Credentials are loaded from environment variables via python-dotenv. The bot can be run as a standalone script or imported as a module for programmatic use.

rendering diagram…

Authentication Flow

The bot handles the full multi-step SLC authentication sequence, including automatic cookie consent dismissal and optional 2FA via secret code.

rendering diagram…