|
||
---|---|---|
.gitignore | ||
README.md | ||
filter.py | ||
moodle.py |
README.md
moodle-no-submitted-exporter
Preparation
- Having python (>3.8) installed
- Install Beautiful Soup
pip install beautifulsoup4
How to use
- 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.
- 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>
- 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