sync_course
Download course materials into a local folder, organizing files by section and creating an index with due dates. Only new or changed files are fetched, so it can be run again without altering Moodle.
Instructions
Download a course's materials into a local folder, one subfolder per section.
Saves files, folder contents, assignment attachments and pages (as .md), plus an INDEX.md
listing everything with links, due dates and item ids. Only new or changed files are
downloaded, so it's cheap to run again. Nothing on Moodle is changed.
Args:
course: Course code like "CS-214", numeric id, or part of the name.
folder: Where to save. Defaults to ~/Moodle/<course code>.
max_file_mb: Skip files larger than this (e.g. lecture videos).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| course | Yes | ||
| folder | No | ||
| max_file_mb | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |