A user-friendly Python application that automatically downloads and merges actuarial exam papers from the Institute of Actuaries of India website.
- π Custom Date Range: Select any date range (e.g., Jun 2005 to Sep 2018)
- π All Subjects: Choose from 40+ available subjects (ST, SP, CT, CP, CM, CS, CB, SA, CA)
- π Auto-Merge: Downloads and merges question papers + solutions into one PDF
- π Organized: PDFs are sorted in decreasing chronological order
- π― User-Friendly: Interactive menu-driven interface
- β Validation: Checks PDF integrity and skips corrupt files
- π Clean Output: Organized folder structure with timestamps
- Python 3.7 or higher
- Internet connection
-
Download or Clone this repository
git clone <repository-url> cd PdfMerger
-
Run the setup script (automatically installs dependencies)
python app.py
The first run will automatically install required packages if missing.
-
Install Python dependencies
pip install -r requirements.txt
-
Run the application
python app.py
python app.pyπ
DATE RANGE SELECTION:
Please enter the date range (format: MMM YYYY)
Examples: 'Jun 2005', 'Sep 2018', 'May 2025'
Enter START date (e.g., 'Jun 2005'): Jun 2005
Enter END date (e.g., 'Sep 2018'): Sep 2018
The application will show all available subjects organized by category:
π SUBJECT SELECTION:
Available subjects:
π Core Principles (CP):
1. CP1A - Actuarial Practice
2. CP1B - Actuarial Practice
3. CP2A - Actuarial Modelling
π Specialist Technical (ST):
15. ST1 - Health and Care Insurance
16. ST2 - Life Insurance
17. ST6 - Finance and Investment B
Select subject (1-45): 17
The application will:
- Find all available sessions in your date range
- Download question papers and solutions
- Merge everything into one PDF file
- Show progress with real-time updates
π SUCCESS! Your merged PDF is ready:
π File: Actuaries_ST6_Jun2005_to_Sep2018_Merged.pdf
π Location: D:\PdfMerger\downloads\session_20241205_143022\Actuaries_ST6_Jun2005_to_Sep2018_Merged.pdf
π Total PDFs merged: 54
π Subject: ST6 - Finance and Investment B
π
Date range: Jun 2005 to Sep 2018
downloads/
βββ session_20241205_143022/ # Timestamped session folder
β βββ individuals/ # Individual PDF files
β β βββ June_2005_Question.pdf
β β βββ June_2005_Solution.pdf
β β βββ November_2005_Question.pdf
β β βββ ...
β βββ Actuaries_ST6_Jun2005_to_Sep2018_Merged.pdf # Final merged PDF
# Get all ST-6 papers for preparation
Start: Jun 2005
End: Sep 2018
Subject: ST6 - Finance and Investment B# Get recent SP-6 papers
Start: Jun 2019
End: May 2025
Subject: SP6 - Financial Derivatives# Get all CT-1 papers ever available
Start: Nov 2005
End: Nov 2024
Subject: CT1 - Financial MathematicsThe application supports all subjects available on the Actuaries India website:
Core Subjects:
- CP (Core Principles): Actuarial Practice, Actuarial Modelling, Communication
- CM (Core Mathematics): Actuarial Mathematics, Financial Engineering
- CS (Core Statistics): Actuarial Statistics, Risk Modelling
- CB (Core Business): Business Finance, Business Economics, Business Management
Specialist Subjects:
- ST (Specialist Technical): Health Insurance, Life Insurance, General Insurance, Pensions, Finance & Investment
- SP (Specialist Principles): Health & Care, Life Insurance, Pensions, Investment & Finance, Financial Derivatives, General Insurance
- SA (Specialist Advanced): Advanced versions of specialist subjects
Legacy Subjects:
- CT (Core Technical): Financial Mathematics, Finance, Statistics, Models, Economics
- CA (Core Applications): Risk Management, Communications
- Internet Required: Application downloads files from actuariesindia.org
- Large Downloads: Some date ranges may result in 100+ MB downloads
- Processing Time: Larger ranges take more time (typically 1-5 minutes)
- PDF Validation: Corrupt PDFs are automatically skipped
- Respectful Usage: Application includes reasonable delays between requests
"No PDFs found in the specified date range"
- Check if the website has papers for those dates
- Try a broader date range
- Verify subject availability for that time period
"SSL Certificate Error"
- The application handles this automatically
- If issues persist, check your internet connection
"Module not found" errors
- Run:
pip install -r requirements.txt - Make sure Python 3.7+ is installed
Slow downloads
- Normal for large date ranges
- Application shows progress bars
- Can be interrupted with Ctrl+C
Automatically installed dependencies:
requests- For web scrapingbeautifulsoup4- For parsing HTMLPyPDF2- For PDF operationstqdm- For progress barspython-dateutil- For date parsing
Feel free to:
- Report bugs or issues
- Suggest new features
- Submit improvements
- Share with fellow actuaries
This project is for educational purposes. Please respect the Institute of Actuaries of India's terms of service.
- Institute of Actuaries of India for providing question papers
- Python community for excellent libraries
- Fellow actuaries who inspired this tool
Happy studying! πβ¨
Made with β€οΈ for the actuarial community