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

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
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.
Authentication Flow
The bot handles the full multi-step SLC authentication sequence, including automatic cookie consent dismissal and optional 2FA via secret code.