Fetches all Aberystwyth University Past Paper PDFs for a given module.
CLI and GUI interfaces provided.
The underlying paper retriever class supports retrieval operations.
Past Papers are stored at aber.ac.uk/en/past-papers/.
- Python 3 (utilises os, datetime, getpass libraries)
- Python 3 Requests Library
- lxml.html
Once the requirements are satisfied:
Clone or download the project to your machine.
Then in a terminal window run:
python3 aber_past_paper_retriever_cli.py
- Enter Aberystwyth University Username
- Enter Account Password
- Enter your departments past paper page URL Go to this page and click on your department.
- Enter the Module Code - eg PH01010, CS23820, or HQ33220
Papers will then be retrieved and stored within a new folder in the location where the script is being run from.
This example is for a Computer Science Module with Module Code CS26520.
Enter Aberystwyth Username:
Enter Aberystwyth Password:
Enter your Department URL from the past papers URL (see README file, leave blank for compsci):
Enter Module Code: CS26520
Retrieving Papers for CS26520
Retrieved PDF from URL: https://www.aber.ac.uk/en/media/departmental/examinations/pastpapers/pdf/compsci/sem2-19/CS26520-Artificial-Intelligence.pdf
Retrieved PDF from URL: https://www.aber.ac.uk/en/media/departmental/examinations/pastpapers/pdf/compsci/sem2-18/CS26520-18.pdf
Retrieved PDF from URL: https://www.aber.ac.uk/en/media/departmental/examinations/pastpapers/pdf/compsci/sem2-17/CS26520-17.pdf
All Semesters Checked. Check folder for any downloaded papers.
Press Enter to EXIT the program, any other input will allow you to enter another module!
This example is for an International Politics Module with Module Code IQ30320.
Enter Aberystwyth Username:
Enter Aberystwyth Password:
Enter your Department URL from the past papers URL (see README file, leave blank for compsci): https://www.aber.ac.uk/en/past-papers/interpol/
Enter Module Code: IQ30320
Retrieving Papers for IQ30320
Retrieved PDF from URL: https://www.aber.ac.uk/en/media/departmental/examinations/pastpapers/pdf/interpol/sem1-19/IQ30320-19.pdf
Retrieved PDF from URL: https://www.aber.ac.uk/en/media/departmental/examinations/pastpapers/pdf/interpol/sem1-18/IQ30320-18.pdf
Retrieved PDF from URL: https://www.aber.ac.uk/en/media/departmental/examinations/pastpapers/pdf/interpol/sem2-16/IQ30320-16.pdf
All Semesters Checked. Check folder for any downloaded papers.
Press Enter to EXIT the program, any other input will allow you to enter another module!
Once the requirements are satisfied:
Clone or download the project to your machine.
Then in a terminal window run:
python3 aber_past_paper_retriever_gui.py
This will run the GUI interface for the retriever.
Provide options for each field in turn starting with the first.
Any errors encountered will be shown to the user.
- If you encounter a 401 Unauthorized Error your Aber Credentials (username/password) are either incorrect or you do not have the necessary permissions to view the document.