halfwhole / luminus-downloader

Downloads files and folders from LumiNUS
MIT License
11 stars 4 forks source link
downloader luminus nus

LumiNUS Downloader

This downloader compares your local directory to LumiNUS, and pulls all new files and folders from LumiNUS into the appropriate location in your local directory.

🌅 Sunsetting LumiNUS Downloader

This project will no longer be supported as of June 2022. I'll be leaving NUS soon, and so will lose my access to LumiNUS and my ability to test its features. More importantly, NUS will be migrating to Canvas in AY2022/23, leaving both LumiNUS and this downloader largely obsolete.

Nevertheless, feel free to continue using this project if it remains useful to you. If there are any new issues, I'll try to see if I can fix them; otherwise, feel free to fork this repository to make any necessary changes.

I'm glad to know that others have found this downloader useful, and am grateful to everyone who's contributed to this project. Good luck, and best wishes to everyone in NUS!

Setting up

User credentials (optional)

In the config directory, create a file credentials.yaml with the following details:

If credentials.yaml is absent, the user will be prompted for these details, and the file will be saved automatically.

Module mapping

In the config directory, copy modules_example.yaml into a new file modules.yaml. It should have the following:

Running the script

Ensure that you have 7-Zip available, through sudo apt install p7zip-full or brew install p7zip.

Run npm install, then run the main script using node main.js.

Options:

Example of running the script

Contributions

Contributions are welcome! If you have any issues or suggestions, feel free raise them in the issue tracker, or open a pull request directly.