How svalgaard/fskintra works
Project type and purpose
• This is a standalone Python CLI tool (“fskintra”) that logs into the Danish ForældreIntra (School-Parent portal) web service, scrapes various sections (e.g., contacts, documents, homework), converts that content into standard email messages, and dispatches them via SMTP. It is intended to run on demand or as a scheduled job (cron/Docker).
File structure
• Top-level files:
• fskintra.py – the CLI entry point
• requirements.txt – Python dependencies
• Dockerfile – container build instructions
• docs/ – documentation source (Jekyll site)
• Python package “skoleintra/”:
• config.py – loads credentials and settings
• surllib.py – HTTP session & authentication wrapper
• sbs4.py – HTML parsing helpers (BeautifulSoup4)
• semail.py – email message construction & SMTP delivery
• snotifications.py – notification/logging logic
• schildren.py – child‐specific data handling
• pg*.py modules – page‐specific scrapers (pgContacts, pgDocuments, pgHomework, etc.)
README for additional insights
• Purpose: unofficial third-party tool, convert portal content to email
• Deployment: can be installed via pip, executed manually or in cron, can run inside Docker