2023-07-17 03:17:43 +01:00
# **Instructions**
## **Download gradebook**
1. Go to the course page on Blackboard
2. Go to * Grade Centre -> Full Grade Centre *
3. Find the assignment and click on the arrow for more options, and select * Assignment File Download *
4. Select all (click * Show All * at the bottom first, to display all users) and click submit to generate the gradebook zip file
5. Wait for the generated download link to appear, and click to download
## **Extract gradebook**
Extract the downloaded gradebook in a new directory inside * BB_gradebooks * .
- e.g. for `AssignmentX` extract the gradebook in * BB_gradebooks * /`AssignmentX`
## **Organise gradebook**
Before running the script for the first time, install the required packages (*py7z*, * rarfile * ):
2023-12-08 14:01:48 +00:00
```console
2023-07-17 03:17:43 +01:00
python -m pip install py7zr rarfile
```
Note: If running on Linux/Mac, you also need to have `unrar` installed in order to be able to extract * .rar * files.
- `sudo apt install unrar` for Linux
- `brew install rar` for Mac
To organise the gradebook run * * `organise_gradebook.py` ** and provide the name of the directory with the * extracted * gradebook (from section * Extract gradebook * above) as an argument.
- e.g. for gradebook `AssignmentX` (in * BB_gradebooks * /`AssignmentX` ) run:
2023-12-08 14:01:48 +00:00
```console
2023-07-17 03:17:43 +01:00
python organise_gradebook.py AssignmentX
```
While running, the script displays on the terminal information and stats about the gradebook submissions and files.
## **Post-run**
2023-07-23 22:23:21 +01:00
All submission files can be found - organised in directories per student number - in directory * BB_submissions * , under the sub-directory named after the gradebook name provided when running the script.
2023-07-17 03:17:43 +01:00
2023-07-23 22:23:21 +01:00
- e.g. `organise_gradebook.py AssignmentX` creates the directory `AssignmentX` inside * BB_submissions *
2023-07-17 03:17:43 +01:00
2023-07-23 22:23:21 +01:00
Each student directory contains:
2023-07-17 03:17:43 +01:00
2023-07-23 22:23:21 +01:00
- the extracted files from the submitted `.zip` , `.rar` , `.7z`
2023-07-17 03:17:43 +01:00
2023-07-23 22:23:21 +01:00
- the individually submitted files
2023-07-17 03:17:43 +01:00
2023-07-23 22:23:21 +01:00
- the text file generated by Blackboard for the submission (which also contains any comments left by the student)
2023-07-17 03:17:43 +01:00
2023-07-23 22:23:21 +01:00
All comments found in the gradebook are extracted in a text file in * BB_submissions * , with the gradebook name as prefix.
2023-07-17 03:17:43 +01:00
2023-07-23 22:23:21 +01:00
- e.g. `AssignmentX_comments.txt` will be created for gradebook `AssignmentX`
2023-07-17 03:17:43 +01:00
2023-07-23 22:23:21 +01:00
Compressed files are deleted after successfully extracting and organising the contents.
2023-07-17 03:17:43 +01:00
2023-07-23 22:23:21 +01:00
- Any invalid/corrupt compressed files are moved into folder `__BAD__` inside the gradebook directory
2023-07-17 03:17:43 +01:00
## **Inspect by hash** :mag:
See [***Inspect by hash*** ](inspect.md ) for more information & details.