Giter Club home page Giter Club logo

moodle-lazy-dl's Introduction

moodle-lazy-dl

A bot that downloads all files from all your assigned Moodle courses, so you don't manually have to do it yourself 🥱

Works on Windows, Mac and Linux Desktop.

As of now, this is created and tested only for EASV - Erhvervsakademi Sydvest. Feel free to test it out for any other universities that use Moodle, and contribute to the repo :)

Demo

moodle-lazy-dl_preview.mp4

Requisites

You must have installed Node.js to run the bot. The installation in the link includes npm (node package manager), which is also required.

Quick Start

Below are instructions to set up the moodle-lazy-dl on your computer.

1. Clone the repository to a directory on your pc via command prompt:

git clone https://github.com/jakobhoeg/moodle-lazy-dl

2. Open the folder:

cd moodle-lazy-dl

3. Install dependencies:

npm install

4. Rename the .example.env to .env:

mv .example.env .env

5. Replace the variables in the .env file with your university's Moodle web url and your username & password:

MOODLE_WEB_URL="https://moodle.easv.dk"
MOODLE_USERNAME="your_username"
MOODLE_PASSWORD="your_password"
  1. This step is not required, but if you want to download ALL your courses (from ALL semesters) and not only the ones from your current semester, you have to change a variable in the app.js file:
// Change the variable below to "Alle":
const listItemText = "I gang";

8. Run the program:

node .

Or:

node app.js

Occasionally, playwright dependency doesn't install correctly. If that happens, you might have to install it manually with npx playwright install and then you should be able to run node app.js.

Default folder path for downloaded files are C:\Users\<username>\moodle

moodle-lazy-dl's People

Contributors

jakobhoeg avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.