yiyu0x / moodle_BOT

🏫 A BOT can auto crawler homework on moodle , and auto correcting them. (java version)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

moodle_BOT

介紹

能自動把將moodle上的程式作業拉下來,然後自動編譯,自動比對輸出,接著比對是否抄襲。

intro

能檢查出是編譯錯誤,測資錯誤,或是完全正確

適用對象

學校程式作業用moodle作為繳交平台,身為助教的你負責批改程式作業。

系統需求

  • python3
    • beautifulsoup4
  • JDK
  • Bash

使用方式

  1. clone

  2. 編輯get_homework.py裡面的85,87行 填入您的moodle帳號密碼(必須為助教身份)

  3. 執行python3 get_homework.py 依照提示把作業拉下來

  4. 編輯do_it.sh 20~24行中區塊

#setting main class file#############
TARGET=CalScore
INPUTPWD=../../input/hw1.txt
ANSPWD=../../output/hw1_ans.txt
#####################################

TARGET 請填入Main class名稱(進入點)

INPUTPWD 請填入測資路徑 (建議放到input資料夾中)

ANSPWD 請填入答案檔案路徑 (建議放到output資料夾中)

  1. 修改完畢後直接執行do_it.sh

附加功能

若沒有bash以及JDK環境也可以自己開一個repo設定travis-ci達成在遠端批改功能

比對抄襲

如果需要比對抄襲功能,請將moss script放入此repo的根目錄,do_it.sh執行時會自動比對

About

🏫 A BOT can auto crawler homework on moodle , and auto correcting them. (java version)


Languages

Language:Python 53.7%Language:Shell 46.3%