moodle_feedback_filler (Demo)
We hate filling feedback forms, don't we? Relax, this script fills the moodle feedback form for you!
This script automates your task for filling the MSIT moodle feedback form
Any contributions from you guys are welcome. Just fork this repository, make changes in the code and create a pull request, I will merge the changes if it seems interesting. :)
Do star the repo if you think it worth it.
- Chrome/Chromium Browser (https://www.google.com/chrome/browser)
- Chrome WebDriver (https://chromedriver.storage.googleapis.com/index.html?path=2.33/)
- Python3 (https://www.python.org/downloads/)
- Virtualenv (
$ pip3 install virtualenv
) - Selenium (
$ pip3 install selenium
)
- Firstly, clone the repository using the git shell
$ git clone https://github.com/rajujha373/moodle_feedback_filler.git
- Goto the base directory of the project
$ cd moodle_feedback_filler
- Create a virtual environment and activate it.
$ virtualenv venv
$ source venv/bin/activate
- Install the requirements for the project
$ pip install -r requirements.txt
- Download the ChromeWebdriver and extract into the directory.
- In the file "feedback.py" replace
"{GLOBAL PATH OF CHROMEDRIVER}" with the absolute path of the downloaded Chrome Webdriver
"{YOUR USERNAME HERE}": with your moodle username
"{YOUR PASSWORD HERE}" with your moodle password
"{YOUR LABCODE HERE}": with your lab code (lab_codes_A : IF YOU BELONG TO GROUP A, lab_codes_B : IF YOU BELONG TO GROUP B, lab_codes_C : IF YOU BELONG TO GROUP C) - Run the script
$ python3 feedback.py
- Voila!
This script gives rating of 4 to each checkboxes (in the scale of 5, larger being better).