This script looks up student Canvas IDs from a file and copy submission files with names having each ID as a substring. Useful for CMPT 120 TAs to extract submissions for the group they are marking.
- download it to a directory (best if there is nothing else in it)
- download the group assignment (Refer to below on how to do so), rename it to
For Marking Purposes Only.csv
- download the submissions, unzip them, put them in a directory called
submissions
(note all lowercase) next to the script - open the script with IDLE, update line 15 to match with the group you are marking
- run the script, a directory with the group name will be created and all the files that needed to be marked will be copied there
- Canvas Course
- Assignment
- Find exercise that needs to be marked
- Select "Download Submission" from the bar on the right
- Extract zip file into a new folder
- Rename folder to
submissions
- Canvas Course
- Grade
- Find exercise that needs to be marked
- Select the triple dots beside it (screen below)
- Select "Download Submission"
- Extract zip file into a new folder
- Rename folder to
submissions
- Canvas Course side bar
- People
- Select the group tab "For Marking Purposes Only"
- Select "+ Import"
- Download Course Roster CVS from the bottom
- Rename it to
For Marking Purposes Only.csv
- Open up terminal or any other Python IDE.
python3 SubmissionExtractor.py
- Follow prompts
- Make sure your CVS file is renamed properly
- Make sure you don't have any marking group folders
- Author: Dr. Victor Cheung
- Documenattion + Updates: Parsa Rajabi