This repository helps to download NTU content from NTULearn in a conveniently. This repository contains 2 scripts:
- NTUContentDownloaderConsoleApp.py (Downloads course materials - by @wilsonteng97)
- NTULectureVideoDownloaderConsoleApp.py (Downloads lecture videos - by @sweesenkoh)
Both scripts will start by asking for ntulearn username and password. Using the information, it will display all the registered modules. Simply select any one of the courses to begin downloading your files (ppt, pdf, etc).
NOTE: Development for the lecture video downloader script has been discontinued due to unstandardised platforms used by different professors (E.g. BBcollaborate, Zoom, etc).
## Below are some dependencies to install before running: Run these line by line in terminal or command prompt.
pip3 install selenium
pip3 install bs4
Download the python file and place it in a directory. To use it, navigate to the directory in terminal or command prompt. For example, if the python file is placed in Desktop Folder, we can navigate to the Desktop directory by running the following line in terminal:
cd Desktop
Next, to run the file, simply type the following line:
python3 NTUContentDownloaderConsoleApp.py
To avoid entering the credentials information during every launch, you can directly hardcode your credentials details into the code. In the top section of the code, you will find the following snippet:
...
#Enter Credentials information here
username = None
password = None
##
...
In this section, replace the None values with your actual credentials information, below is an example:
#Enter Credentials information here
username = 'WTENG002@student.main.ntu.edu.sg'
password = 'MyAmazingPassword'
##