{"id":20600156,"url":"https://github.com/malb/moodle-cli","last_synced_at":"2025-06-20T17:06:20.061Z","repository":{"id":145080051,"uuid":"143908513","full_name":"malb/moodle-cli","owner":"malb","description":"Basic command line interface for Moodle using Selenium (!) because we can't have nice things","archived":false,"fork":false,"pushed_at":"2019-03-29T12:53:05.000Z","size":11,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-09T03:04:40.206Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/malb.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-07T17:52:28.000Z","updated_at":"2025-04-20T17:21:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"6699644c-6663-4f0f-b8d1-f4f12f48f53f","html_url":"https://github.com/malb/moodle-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/malb/moodle-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malb%2Fmoodle-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malb%2Fmoodle-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malb%2Fmoodle-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malb%2Fmoodle-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malb","download_url":"https://codeload.github.com/malb/moodle-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malb%2Fmoodle-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260985135,"owners_count":23092882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T08:37:09.873Z","updated_at":"2025-06-20T17:06:15.007Z","avatar_url":"https://github.com/malb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+TITLE: Basic Selenium-based Moodle CLI\n\n* Why?\n\nMy university doesn’t enable the Moodle API but Moodle’s web interface is horrible and clunky.\n\n* What can it do?\n\nNot much!\n\n#+BEGIN_SRC sh :results verbatim :exports results\n./cli.py \n#+END_SRC\n\n#+RESULTS:\n: Usage: cli.py [OPTIONS] COMMAND [ARGS]...\n: \n: Options:\n:   --help  Show this message and exit.\n: \n: Commands:\n:   list-files   List files of a course.\n:   set-text     Set the summary text of a section from a...\n:   upload-file  Upload a file.\n\n* It doesn’t work!\n\nThe whole thing is rather fragile as it depends on Moodle’s internal HTML representation which changes from version to version. I’m testing/using it on the Moodle install of my university. I’m happy to use as generic XPATH as possible to support more Moodle versions, but I have no intention of promising any support for anything other than whatever my university is running at the moment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalb%2Fmoodle-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalb%2Fmoodle-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalb%2Fmoodle-cli/lists"}