Title: Canvas-Uploader Instruction
Author: Shenghao Zou
Affiliation: University of Wisconsin, Madison
Date: Feb, 21 2018
This is a simple script to upload your grade stored in excel files to Canvas system. You can use your own excel spreadsheets to track comments, and specific graders for each rubrics. It used selenium and Firefox to simulate user input. It can work on Windows, Mac OS X and Linux systems.
To install and run this script, you should firstly install Python 2, selenium, Firefox and geckodriver. (In the past, we used Chrome and chromedriver but it seems Chrome didn't work very well).
- To install selenium, please run
pip install selenium
. - To install geckodriver, Please click here: Gecodriver Releases Please unzip it in any folder you like and add geckodirver path to system PATH variable. Restart terminal and try
which geckodriver
to see if you can access to it.
To run the code, you should first make sure your configuration is correct, then run python submit_firefox.py [Your Spreadsheet Name].xlsx
. Don't do anything when submitting.
There are several things you should change before running this script:
- CANVAS_HOME_PAGE variable: If you are not a UW-Madison student/faculty, change it to your university's Canvas homepage.
- COURSE_CODE variable: change to your course code. Open your Canvas course homepage. For example, the URL will be:https://canvas.wisc.edu/courses/91385. Here, 91385 is the course number.
- YOUR_CANVAS_NAME variable: Your first name on Canvas.
- DELETE_COMMENT variable: By default delete comment feature will be on. It will delete repeated comments written by you. Sometimes, the script fails and it can help you to avoid multiple same comments. If you don't need this feature, please set this variable to 0.
- USER_NAME variable: Change it to your Canvas user name.
Please take a look of my example.xlsx file for more information. The script needs Student ID for matching. To get that, you can export a csv file from Canvas Grade page and you can find SID there.