Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Latest commit

 

History

History
96 lines (65 loc) · 3.64 KB

README.md

File metadata and controls

96 lines (65 loc) · 3.64 KB

Aber Uni Past Paper Retriever

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/.

Requirements

Usage

aber_past_paper_retriever_cli.py

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
  1. Enter Aberystwyth University Username
  2. Enter Account Password
  3. Enter your departments past paper page URL Go to this page and click on your department.
  4. 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.

Example 1

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!

Example 2

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!

aber_past_paper_retriever_gui.py

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.

Errors

  • 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.

License

GNU General Public License v3.0