Giter VIP home page Giter VIP logo

gradesource-autofill's Introduction

Auto-Fill for GradeSource!

Usage

python3 autofill.py -u <username> -p <password> -f hw4.csv -i 589789 --pid-column 0 --score-column 1

The last "-i" parameter is the id of the from the url of the score page you want to update, for example given: "https://www.gradesource.com/editscores1.asp?id=589789" The id you would use is "589789"

The default value for PID column and student score is 0 and 1 respectively. Meaning the expected .csv format is:

"A1235523", 8

"A1231231", 10

Autograder Example

The following example is for those of you using .csv files from autograder.ucsd.edu

python3 autofill.py -u elliot -p xxx -f Homework-3.csv -i 602223 --pid-column 1 --score-column 4

"email", "pid", "firstName", "lastName", "score", "daysEarly"

"[email protected]", "A1235523", "Pourmand", "Elliot", 10, 0

Output

The program will return student PID's who were

  1. Found on the .csv but not found on GradeSource
  2. Found on GradeSource but not found on the .csv

Requirements

Must have selenium installed to your python3

If starting from scratch with OSX:

brew install python3

pip3 install selenium

User Notes

  • The chrome driver I have included is for mac OSX. I have not tested this software on windows but it should work if you replace the chromedriver executable. You can find the drivers here.

  • Please note the program will not press the "submit" button, you must press it once the fields have been filled.

  • The script is case sensitive in finding the PID's to match. Make sure the student PID casing in the input CSV file matches Gradesource PID casing.

  • On MacOS or Linux systems, make sure the Chrome driver has executable permission set.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.