This project containts script files, written in bash, to automatically download courses files from uniwa eclass.
- linux shell (sh, bash, ...)
- curl tool
curl is usually provided by your linux distribution. For ubuntu based distributions run:
sudo apt install curl
You will need all uni-* files, just download them and make sure you have excecution permission
chmod +x uni-connect uni-disconnect uni-list uni-request
./uni-connect [account_file]
This script logs in to the webserver, so you can download your files. Enter your account details by providing a file with it. The syntax must be as follows:
uname=your_user_name
passw=your_password
./uni-list [-n]
This scirpt lists all your subscribed courses ID. The -n options, also, displays their corresponding names.
./uni-request -d <download_dir> [-f] <courses_file_name> [-e] <course_ID_1> <coursed_ID_2> ... <course_ID_n>
This script attempts to download your wanted files. You will always need to specify -d option and -f or -e.
Specify download folder.
Specify which courses you want to install by providing the corresponding ID. Downloaded files' names will be generated automatically.
Specify the file which contains your wanted courses' ID and, optionally, name. If there is no name given for a course, then it will be generated automatically.
The syntax inside "courses_file_name" must be; first column for IDs and second for names. For example:
ca987 math
ph345 electronics
ly123
cs67
Logs out from session.
Inside "acc.txt" file:
uname=xxxx
passw=yyyy
Run in terminal:
./uni-connect acc.txt
./uni-list > courses.txt
./uni-request -d . -f courses.txt
./uni-disconnect
This project is using curl, a free command line tool and library.
- github: https://github.com/curl/curl
- curl license: https://curl.haxx.se/docs/copyright.html