This tool is a CLI-interactive tool for TA who use eeclass platform

NTHU eeclass TA helper

github

This tool is a CLI-interactive tool for TA who use eeclass platform. It helps TA to download all the submitted homeworks, and use CSV to record the score and homework comment, and upload CSV score directly to the eeclass platform with just 2 Enter key!

How to use this tool

  1. Login from your browser.
  2. Open console (press F12, if you use Chrome)
  3. Click Application tab in the developer tool.
  4. In the left side bar, find Storage > Cookies, Copy the name and value of PHPSESSID
  5. Paste them into env file as :
COOKIE=PHPSESSID={yourphpsessidhere};

example :

COOKIE=PHPSESSID=12341234123412341234123412341234;
  1. Click console tab in the developer tool. Type in console.log(document.cookie);, and copy the output.
  2. Paste them into env file as :
COOKIE=PHPSESSID={yourphpsessidhere}; {your cookie}

example :

COOKIE=PHPSESSID=12341234123412341234123412341234; _login_token_=asdfasdef5asdfasdfasdf75asdf0e6; timezone=%2B0800; noteFontSize=100; noteExpand=0; TS01e4fe74=0140e1c48e3f8cad7563959dc63c589fd4dacf00f7e771606b3dbf2a115easdfasdfasdfasdf75a1easdfasdfasdfasdfasdfasdf2c96270a62ea1b1f1d624ca09a6d7asdfasdfasdf57a67474d57f03f643537207bbfef588d12f28a12ac1c57bc50322bb04e8500d0467d65c85d34d3a95f9
  1. Find your course id in homework page in the browser. Example :
https://eeclass.nthu.edu.tw/course/homework/2046

2046 is the course id. So fill in the env file.

COURSE_ID=2046

Run this tool from this repository

Run the below command, and it follow the CLI-interactive prompt to download the submitted file in the root directory of this project, or upload the score.

go run .

Run this tool from release

Download the binary from release page, and then run it directly with env file in the same directory.

Goal

  • Input score from a csv file
  • Auto Login
Owner
Bo-Wei Chen
Backend developer.
Bo-Wei Chen
Similar Resources

🔥 [WIP] Interactive Jira Command Line

🔥 [WIP] Interactive Jira Command Line

JiraCLI Interactive Jira CLI 🚧 This project is still a work in progress 🚧 This tool mostly focuses on issue search and navigation at the moment. How

Jan 4, 2023

Building powerful interactive prompts in Go, inspired by python-prompt-toolkit.

Building powerful interactive prompts in Go, inspired by python-prompt-toolkit.

go-prompt A library for building powerful interactive prompts inspired by python-prompt-toolkit, making it easier to build cross-platform command line

Jan 3, 2023

Terminal UI library with rich, interactive widgets — written in Golang

Terminal UI library with rich, interactive widgets — written in Golang

Rich Interactive Widgets for Terminal UIs This Go package provides commonly needed components for terminal based user interfaces. Among these componen

Jan 7, 2023

A golang library for building interactive prompts with full support for windows and posix terminals.

A golang library for building interactive prompts with full support for windows and posix terminals.

Survey A library for building interactive prompts on terminals supporting ANSI escape sequences. package main import ( "fmt" "github.com/Alec

Jan 6, 2023

Interactive prompt for command-line applications

Interactive prompt for command-line applications

promptui Interactive prompt for command-line applications. We built Promptui because we wanted to make it easy and fun to explore cloud services with

Jan 8, 2023

Interactive prompt to set and push a semver tag

Interactive prompt to set and push a semver tag

cutver For when you know what version to tag, and you want to cut a release in the annotated tag format. Installation go install github.com/roryq/cutv

Nov 15, 2022

The missing git branch --interactive

git branch-i I got cross that there's no git branch --interactive, so I made this. It's a very (very) simple curses-mode git branch/git checkout alter

Nov 2, 2022

An interactive shell for go application

goshell An interactive shell for go application in normal mode ctrl-c break exec

Dec 15, 2022

a work time management CLI tool for any platform

a work time management CLI tool for any platform

english |日本語 jobgosh | job management tool made with golang for shell a multi-platform work time management CLI tool to track and improve your day to

May 16, 2022
Abacus is a simple interactive calculator CLI

Abacus is a simple interactive calculator CLI with support for variables, comparison checks, and math functions abacus -

Sep 15, 2022
Build an interactive CLI application with Go, Cobra and promptui. Video tutorial available on the Div Rhino YouTube channel.

Build an interactive CLI app with Go, Cobra and promptui Text tutorial: https://divrhino.com/articles/build-interactive-cli-app-with-go-cobra-promptui

Dec 8, 2022
Interactive CLI helper for creating git branches with JIRA Links and some text

bb (better-branch) Interactive CLI helper for creating git branches with JIRA Links and some text Still in development? Yes How it works? This tiny ut

Aug 18, 2022
🧨 Interactive Process Killer CLI made with Go!
🧨 Interactive Process Killer CLI made with Go!

proc-manager is an interactive CLI to kill processes made with Go, currently supports Linux, Mac OS X, Solaris, and Windows.

Dec 2, 2022
Generate an interactive, autocompleting shell for any Cobra CLI
Generate an interactive, autocompleting shell for any Cobra CLI

cobra-shell Description Leverages the Cobra completion API to generate an interactive shell for any Cobra CLI, powered by go-prompt. On-the-fly autoco

Dec 19, 2022
A simple CLI based rock-paper-scissors game created in GO with interactive shell prompt.

rock-paper-scissors A simple CLI (Command Line Interface) based rock-paper-scissors game with interactive shell prompt. Language Download Grab a binar

Oct 9, 2022
Simplistic interactive filtering tool
Simplistic interactive filtering tool

peco Simplistic interactive filtering tool NOTE: If you are viewing this on GitHub, this document refers to the state of peco in whatever current bran

Dec 30, 2022
An interactive command-line tool to manage your environments
An interactive command-line tool to manage your environments

goto An interactive command-line tool to manage your environments Overview You always need to login to some Linux machine or connect to a MySQL instan

Jul 11, 2022
Go-file-downloader-ftctl - A file downloader cli built using golang. Makes use of cobra for building the cli and go concurrent feature to download files.

ftctl This is a file downloader cli written in Golang which uses the concurrent feature of go to download files. The cli is built using cobra. How to

Jan 2, 2022