Go to file
ecwu 8d2d83a601 update course list matching schema 2023-05-09 17:03:57 +08:00
.gitignore add source code for moodle not submitted exporter 2023-05-04 18:58:19 +08:00
README.md add description 2023-05-04 19:07:26 +08:00
filter.py add source code for moodle not submitted exporter 2023-05-04 18:58:19 +08:00
moodle.py update course list matching schema 2023-05-09 17:03:57 +08:00

README.md

moodle-no-submitted-exporter

Preparation

  • Having python (>3.8) installed
  • Install Beautiful Soup pip install beautifulsoup4

How to use

  1. Check your panel id

In the moodle.py file, line 42:

section = soup.find('section', {'id': 'inst303336'})

The id inst303336 is the my courses panel in the ispace (moodle instance), you need to change it to your panel. Use F12 in the Chrome/Edge Broswer to find id. And modify this line to your id.

  1. Run the script, and provide your username and password. The script accept the username and password in two way: config yaml file or cli arguments

create a config file call config.yaml with content:

username: <YOUR USERNAME>
password: <YOUR PASSWORD>

then run the script with the yaml passes in python moodle.py config.yaml


run the script together with your username and password:

python moodle.py <YOUR USERNAME> <YOUR PASSWORD>

  1. Use Linux pipe to pass the output to a file, the output is in csv format.

python moodle.py <YOUR USERNAME> <YOUR PASSWORD> > result.csv