This Python script allows users to download past papers for O Level and AS/A Level examinations from the Xtremepapers website.
- Choose between O Level and AS/A Level examinations
- View available subjects for the chosen examination level
- Select multiple subjects for download
- Automatically organizes downloaded papers into subject and paper type folders
- Python 3.6 or higher
requests
librarybeautifulsoup4
library
-
Ensure you have Python 3.6+ installed on your system.
-
Install the required libraries:
pip install requests beautifulsoup4
- Download the script using curl:
curl -fsSL https://raw.githubusercontent.com/fam007e/OandALvl-exam-paper-downloader/refs/heads/main/o_and_a_lv_qp_sdl.py -o o_and_a_lv_qp_sdl.py
- Run the script:
python o_and_a_lv_qp_sdl.py
-
Follow the on-screen prompts:
- Choose the examination level (O Level or AS/A Level)
- Select the subjects you want to download papers for
- Wait for the download to complete
-
The downloaded papers will be organized in folders by examination level, subject, and paper type (
ms
for mark schemes,qp
for question papers, andmisc
for other types).
Please be respectful of the Xtremepapers website and avoid overloading their servers with too many requests in a short time.
This project is open source and available under the LICENSE.
Contributions, issues, and feature requests are welcome. Feel free to check issues page if you want to contribute.