MDL is a command line tool that allows you to list and download Momentos contents in bulk.
The mdl
tool has three subcommands: login
, list
, and download
. You can learn more about them by running
./mdl --help
Before accessing Momentos contents, users must be logged into the system. This can be done using the login
subcommand.
./mdl login --user [email protected]
Then you will be prompted to enter your password. After a successful login request, mdl
will create a local file mdl.toml
with your access token. Subsequent commands will read your access token from that file.
Use can list their Momentos contents by issuing the following command:
./mdl list
The output consists of a list of pairs <coruse-id> <coruse-name>
. The <course-id>
will be used to download the course contents.
To download your contents, use the download
subcommand and provide the <course-id>
of the course you want to download.
./mdl download --id <course-id> --id <second-course-id>
mdl
will then create a folder named after your course-id
where it will place all the lectures and transcripts from such course.
cargo build --release
- Rust toolchain
- A C compiler and linker
- SSL dev library
The recomended way of installing the Rust toolchain is using rustup
. You can find more information here.
The rest of the dependecies can be installed, in Ubuntu, with the following command.
sudo apt install build-essential libssl-dev