Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install plugins from the Moodle plugins directory #49

Closed
2 tasks
geoffreyvanwyk opened this issue Jun 15, 2024 · 0 comments · Fixed by #51
Closed
2 tasks

Install plugins from the Moodle plugins directory #49

geoffreyvanwyk opened this issue Jun 15, 2024 · 0 comments · Fixed by #51
Assignees
Labels
enhancement New feature or request

Comments

@geoffreyvanwyk
Copy link
Owner

geoffreyvanwyk commented Jun 15, 2024

Moodle Plugins Directory: https://moodle.org/plugins

To obtain the download link for the zip archive of a plugin, one has to manually copy it from the directory. The directory's API only provides endpoints for a developer's own plugins.

The only option appears to be to scrape the directory and to build up a separate database and API that can be queried by this role.

  • Create web scraper to collect download links for plugins
  • Create Laravel API app for serving the links

The plugins directory makes it impossible to get the download link by web scraping. The link under the "Download" button is set with JavaScript afterwhich any trace of the data is removed. Scraping with a JavaScript-aware middleware runs into the bot-challenge page.

@geoffreyvanwyk geoffreyvanwyk added this to the Publish v1.7.0 milestone Jun 15, 2024
@geoffreyvanwyk geoffreyvanwyk self-assigned this Jun 15, 2024
@geoffreyvanwyk geoffreyvanwyk changed the title Add feature for installing plugins from the plugins directory Install plugins from the Moodle plugins directory Jun 15, 2024
@geoffreyvanwyk geoffreyvanwyk added the enhancement New feature or request label Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant