PESU Academy Slide Download Automation
Index
Overview
This Python script automates the process of logging into PESU Academy, selecting a course, selecting a unit, opening the first slide, downloading and optionally merging available files using Playwright. All session data is stored only in memory, and the script prompts for your credentials at runtime. It is designed to simplify navigation inside PESU Academy without saving any user data locally.
Installation
-
Install requirements:
pip install -r requirements.txt -
Install Playwright browsers:
playwright install
Auto Download Slides
-
Run the main script:
python main.py -
Enter your SRN/PRN and password when prompted.
-
Follow the on-screen prompts to select a course and unit.
-
The script will open the first slide, download available files, automatically convert pptx to ppt files, and optionally merge them.
Features for Pre-Existing Folders
Converting PPTX to PDF
You can automatically convert PPTX files to PDF using file_conversion.py for pre existing folders:
python file_conversion.py --folder "FolderName"
Merge PDFs
You can merge PDFs from any folder using the merge.py script:
python merge.py --folder "FolderName" --output "merged.pdf"
- If
merged.pdfalready exists, the script will automatically createmerged[1].pdf,merged[2].pdf, etc. --folderis required,--outputis optional.
Hide View Playwright Automation
To not see the browser while automating
- Change headless mode in
main.pyandfile_conversion.pyfromFalsetoTrue:
browser = p.chromium.launch(headless=True)
- Uncomment out resource blocking:
page.route(
"**/*",3
lambda route: route.abort()
if route.request.resource_type in ["image", "media", "font"]
else route.continue_()
)
Notes
- All scripts are designed to keep your credentials in memory only.
- PDF ordering after conversion relies on existing filenames, no renaming is done automatically.
- iLovePDF free version limits batch conversion to 3 files at a time;
file_conversion.pyautomatically batches files.
License
Copyright (C) 2026 Shakirth Anisha
This project is licensed under the GNU GPL v3.0. See the LICENSE file for details.